.class public Lcom/view/IjkVideoView;
.super Landroid/view/SurfaceView;


# instance fields
.field protected a:I

.field protected b:I

.field protected c:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

.field private d:I

.field private e:Landroid/view/SurfaceHolder;

.field private f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

.field private g:Landroid/widget/MediaController;

.field private h:Ljava/lang/String;

.field private i:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

.field private j:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

.field private k:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

.field private l:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

.field private m:I

.field private n:Landroid/os/Handler;

.field private o:I

.field private p:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

.field private q:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

.field private r:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

.field private s:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

.field private t:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

.field private u:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnSeekCompleteListener;

.field private v:Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;

.field private w:Ljava/lang/String;

.field private x:Ljava/lang/Runnable;

.field private y:Ljava/lang/String;

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    iput v1, p0, Lcom/view/IjkVideoView;->d:I

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/view/IjkVideoView;->n:Landroid/os/Handler;

    iput v1, p0, Lcom/view/IjkVideoView;->o:I

    new-instance v0, Lcom/view/a;

    invoke-direct {v0, p0}, Lcom/view/a;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->p:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

    new-instance v0, Lcom/view/b;

    invoke-direct {v0, p0}, Lcom/view/b;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->q:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    new-instance v0, Lcom/view/c;

    invoke-direct {v0, p0}, Lcom/view/c;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->r:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    new-instance v0, Lcom/view/d;

    invoke-direct {v0, p0}, Lcom/view/d;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->s:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    new-instance v0, Lcom/view/e;

    invoke-direct {v0, p0}, Lcom/view/e;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->t:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    new-instance v0, Lcom/view/f;

    invoke-direct {v0, p0}, Lcom/view/f;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->u:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnSeekCompleteListener;

    new-instance v0, Lcom/view/g;

    invoke-direct {v0, p0}, Lcom/view/g;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->v:Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/view/IjkVideoView;->x:Ljava/lang/Runnable;

    const-string v0, "SYTV/1.6"

    iput-object v0, p0, Lcom/view/IjkVideoView;->y:Ljava/lang/String;

    const/4 v0, 0x1

    iput v0, p0, Lcom/view/IjkVideoView;->z:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput v1, p0, Lcom/view/IjkVideoView;->d:I

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/view/IjkVideoView;->n:Landroid/os/Handler;

    iput v1, p0, Lcom/view/IjkVideoView;->o:I

    new-instance v0, Lcom/view/a;

    invoke-direct {v0, p0}, Lcom/view/a;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->p:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

    new-instance v0, Lcom/view/b;

    invoke-direct {v0, p0}, Lcom/view/b;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->q:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    new-instance v0, Lcom/view/c;

    invoke-direct {v0, p0}, Lcom/view/c;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->r:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    new-instance v0, Lcom/view/d;

    invoke-direct {v0, p0}, Lcom/view/d;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->s:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    new-instance v0, Lcom/view/e;

    invoke-direct {v0, p0}, Lcom/view/e;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->t:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    new-instance v0, Lcom/view/f;

    invoke-direct {v0, p0}, Lcom/view/f;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->u:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnSeekCompleteListener;

    new-instance v0, Lcom/view/g;

    invoke-direct {v0, p0}, Lcom/view/g;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->v:Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/view/IjkVideoView;->x:Ljava/lang/Runnable;

    const-string v0, "SYTV/1.6"

    iput-object v0, p0, Lcom/view/IjkVideoView;->y:Ljava/lang/String;

    const/4 v0, 0x1

    iput v0, p0, Lcom/view/IjkVideoView;->z:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput v1, p0, Lcom/view/IjkVideoView;->d:I

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/view/IjkVideoView;->n:Landroid/os/Handler;

    iput v1, p0, Lcom/view/IjkVideoView;->o:I

    new-instance v0, Lcom/view/a;

    invoke-direct {v0, p0}, Lcom/view/a;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->p:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

    new-instance v0, Lcom/view/b;

    invoke-direct {v0, p0}, Lcom/view/b;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->q:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    new-instance v0, Lcom/view/c;

    invoke-direct {v0, p0}, Lcom/view/c;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->r:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    new-instance v0, Lcom/view/d;

    invoke-direct {v0, p0}, Lcom/view/d;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->s:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    new-instance v0, Lcom/view/e;

    invoke-direct {v0, p0}, Lcom/view/e;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->t:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    new-instance v0, Lcom/view/f;

    invoke-direct {v0, p0}, Lcom/view/f;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->u:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnSeekCompleteListener;

    new-instance v0, Lcom/view/g;

    invoke-direct {v0, p0}, Lcom/view/g;-><init>(Lcom/view/IjkVideoView;)V

    iput-object v0, p0, Lcom/view/IjkVideoView;->v:Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/view/IjkVideoView;->x:Ljava/lang/Runnable;

    const-string v0, "SYTV/1.6"

    iput-object v0, p0, Lcom/view/IjkVideoView;->y:Ljava/lang/String;

    const/4 v0, 0x1

    iput v0, p0, Lcom/view/IjkVideoView;->z:I

    return-void
.end method

.method static synthetic a(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->i:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    return-object v0
.end method

.method static synthetic a(Lcom/view/IjkVideoView;I)V
    .locals 0

    iput p1, p0, Lcom/view/IjkVideoView;->m:I

    return-void
.end method

.method static synthetic a(Lcom/view/IjkVideoView;Landroid/view/SurfaceHolder;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->e:Landroid/view/SurfaceHolder;

    return-void
.end method

.method static synthetic b(Lcom/view/IjkVideoView;)Landroid/widget/MediaController;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    return-object v0
.end method

.method static synthetic c(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->j:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    return-object v0
.end method

.method static synthetic d(Lcom/view/IjkVideoView;)Landroid/view/SurfaceHolder;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->e:Landroid/view/SurfaceHolder;

    return-object v0
.end method

.method static synthetic e(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->k:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    return-object v0
.end method

.method static synthetic f(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->l:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    return-object v0
.end method

.method static synthetic g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    return-object v0
.end method

.method static synthetic h(Lcom/view/IjkVideoView;)I
    .locals 1

    iget v0, p0, Lcom/view/IjkVideoView;->m:I

    return v0
.end method


# virtual methods
.method public a()V
    .locals 10

    const-wide/16 v8, 0x0

    const/4 v5, 0x1

    const-wide/16 v6, 0x1

    const/4 v4, 0x4

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->stop()V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->reset()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    :cond_0
    new-instance v0, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-direct {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;-><init>()V

    iput-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {p0}, Lcom/view/IjkVideoView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "probsize"

    const-string v2, "1000"

    invoke-virtual {v0, v5, v1, v2}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "infbuf"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const/4 v1, 0x2

    const-string v2, "skip_loop_filter"

    invoke-virtual {v0, v1, v2, v8, v9}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "packet-buffering"

    invoke-virtual {v0, v4, v1, v8, v9}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "user_agent"

    iget-object v2, p0, Lcom/view/IjkVideoView;->y:Ljava/lang/String;

    invoke-virtual {v0, v5, v1, v2}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "http-detect-range-support"

    invoke-virtual {v0, v5, v1, v8, v9}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "delay-optimization"

    invoke-virtual {v0, v5, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "cache-buffer-duration"

    const-wide/16 v2, 0x4e20

    invoke-virtual {v0, v5, v1, v2, v3}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "live-streaming"

    invoke-virtual {v0, v5, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "rtsp_transport"

    const-string v2, "tcp"

    invoke-virtual {v0, v5, v1, v2}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "framedrop"

    invoke-virtual {v0, v4, v1, v8, v9}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "overlay-format"

    const-wide/32 v2, 0x32335652

    invoke-virtual {v0, v4, v1, v2, v3}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec"

    iget v2, p0, Lcom/view/IjkVideoView;->z:I

    int-to-long v2, v2

    invoke-virtual {v0, v4, v1, v2, v3}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec_all_videos"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-avc"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-hevc"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-mpeg2"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-mpeg4"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-auto-rotate"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "mediacodec-handle-resolution-change"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    const-string v1, "enable-accurate-seek"

    invoke-virtual {v0, v4, v1, v6, v7}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOption(ILjava/lang/String;J)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->p:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnInfoListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->q:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnErrorListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->r:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnCompletionListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->s:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnPreparedListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->t:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnBufferingUpdateListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->v:Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setOnNativeInvokeListener(Ltv/danmaku/ijk/media/player/IjkMediaPlayer$OnNativeInvokeListener;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    iget-object v1, p0, Lcom/view/IjkVideoView;->h:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->setDataSource(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->prepareAsync()V

    return-void
.end method

.method public a(J)V
    .locals 1

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0, p1, p2}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->seekTo(J)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;I)V
    .locals 2

    :try_start_0
    iput-object p1, p0, Lcom/view/IjkVideoView;->h:Ljava/lang/String;

    iput p2, p0, Lcom/view/IjkVideoView;->z:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/view/IjkVideoView;->o:I

    iget-object v0, p0, Lcom/view/IjkVideoView;->n:Landroid/os/Handler;

    iget-object v1, p0, Lcom/view/IjkVideoView;->x:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    const-string v0, "Cache-control:no-cache\r\n"

    iput-object v0, p0, Lcom/view/IjkVideoView;->w:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/view/IjkVideoView;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public b()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->stop()V

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->reset()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public c()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->pause()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public d()Z
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->isPlaying()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getCurrentPostion()J
    .locals 2

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    :goto_0
    return-wide v0

    :cond_0
    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->getCurrentPosition()J

    move-result-wide v0

    goto :goto_0
.end method

.method public getSpeed()Ljava/lang/String;
    .locals 8

    const/4 v4, 0x1

    const/4 v5, 0x0

    const-wide/16 v6, 0x400

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->getTcpSpeed()J

    move-result-wide v0

    cmp-long v2, v0, v6

    if-gez v2, :cond_0

    const-string v2, "%6s"

    new-array v3, v4, [Ljava/lang/Object;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "B/S"

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const-wide/32 v2, 0x100000

    cmp-long v2, v0, v2

    if-gez v2, :cond_1

    const-string v2, "%6s"

    new-array v3, v4, [Ljava/lang/Object;

    new-instance v4, Ljava/lang/StringBuilder;

    div-long/2addr v0, v6

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "K/S"

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_1
    const-string v2, "%6s"

    new-array v3, v4, [Ljava/lang/Object;

    new-instance v4, Ljava/lang/StringBuilder;

    div-long/2addr v0, v6

    div-long/2addr v0, v6

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "M/S"

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_2
    const-string v0, ""

    goto :goto_0
.end method

.method public getTcpSpeed()J
    .locals 2

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->getTcpSpeed()J

    move-result-wide v0

    return-wide v0
.end method

.method protected onMeasure(II)V
    .locals 4

    const/4 v1, 0x0

    invoke-static {v1, p1}, Lcom/view/IjkVideoView;->getDefaultSize(II)I

    move-result v0

    invoke-static {v1, p2}, Lcom/view/IjkVideoView;->getDefaultSize(II)I

    move-result v1

    iget v2, p0, Lcom/view/IjkVideoView;->d:I

    packed-switch v2, :pswitch_data_0

    :goto_0
    iget v0, p0, Lcom/view/IjkVideoView;->a:I

    iget v1, p0, Lcom/view/IjkVideoView;->b:I

    invoke-virtual {p0, v0, v1}, Lcom/view/IjkVideoView;->setMeasuredDimension(II)V

    return-void

    :pswitch_0
    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    iput v1, p0, Lcom/view/IjkVideoView;->b:I

    goto :goto_0

    :pswitch_1
    iget v2, p0, Lcom/view/IjkVideoView;->a:I

    if-eqz v2, :cond_0

    iget v2, p0, Lcom/view/IjkVideoView;->b:I

    if-nez v2, :cond_1

    :cond_0
    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    iput v1, p0, Lcom/view/IjkVideoView;->b:I

    goto :goto_0

    :cond_1
    iget v2, p0, Lcom/view/IjkVideoView;->a:I

    div-int/2addr v2, v0

    iget v3, p0, Lcom/view/IjkVideoView;->b:I

    div-int/2addr v3, v1

    if-le v2, v3, :cond_2

    iget v1, p0, Lcom/view/IjkVideoView;->b:I

    mul-int/2addr v1, v0

    iget v2, p0, Lcom/view/IjkVideoView;->a:I

    div-int/2addr v1, v2

    iput v1, p0, Lcom/view/IjkVideoView;->b:I

    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/view/IjkVideoView;->a:I

    mul-int/2addr v0, v1

    iget v2, p0, Lcom/view/IjkVideoView;->b:I

    div-int/2addr v0, v2

    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    iput v1, p0, Lcom/view/IjkVideoView;->b:I

    goto :goto_0

    :pswitch_2
    iput v1, p0, Lcom/view/IjkVideoView;->b:I

    mul-int/lit8 v0, v1, 0x4

    div-int/lit8 v0, v0, 0x3

    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    goto :goto_0

    :pswitch_3
    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    mul-int/lit8 v0, v0, 0x9

    div-int/lit8 v0, v0, 0x10

    iput v0, p0, Lcom/view/IjkVideoView;->b:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public setMediaController(Landroid/widget/MediaController;)V
    .locals 2

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    invoke-virtual {v0}, Landroid/widget/MediaController;->hide()V

    :cond_0
    iput-object p1, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    new-instance v1, Lcom/view/h;

    invoke-direct {v1, p0}, Lcom/view/h;-><init>(Lcom/view/IjkVideoView;)V

    invoke-virtual {v0, v1}, Landroid/widget/MediaController;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    invoke-virtual {p0}, Lcom/view/IjkVideoView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v0, v0, Landroid/view/View;

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/view/IjkVideoView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    :goto_0
    invoke-virtual {p1, v0}, Landroid/widget/MediaController;->setAnchorView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    iget-object v1, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v1}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->isPlaying()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/MediaController;->setEnabled(Z)V

    iget-object v0, p0, Lcom/view/IjkVideoView;->g:Landroid/widget/MediaController;

    invoke-virtual {v0}, Landroid/widget/MediaController;->show()V

    :cond_1
    return-void

    :cond_2
    move-object v0, p0

    goto :goto_0
.end method

.method public setOnBufferingUpdateListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->l:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnBufferingUpdateListener;

    return-void
.end method

.method public setOnCompletionListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->j:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnCompletionListener;

    return-void
.end method

.method public setOnErrorListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->i:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnErrorListener;

    return-void
.end method

.method public setOnInfoListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->c:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnInfoListener;

    return-void
.end method

.method public setOnPreparedListener(Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->k:Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    return-void
.end method

.method public setScreenScale(I)V
    .locals 1

    iput p1, p0, Lcom/view/IjkVideoView;->d:I

    :try_start_0
    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->getVideoWidth()I

    move-result v0

    iput v0, p0, Lcom/view/IjkVideoView;->a:I

    iget-object v0, p0, Lcom/view/IjkVideoView;->f:Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    invoke-virtual {v0}, Ltv/danmaku/ijk/media/player/IjkMediaPlayer;->getVideoHeight()I

    move-result v0

    iput v0, p0, Lcom/view/IjkVideoView;->b:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-virtual {p0}, Lcom/view/IjkVideoView;->requestLayout()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public setUserAgent(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/view/IjkVideoView;->y:Ljava/lang/String;

    return-void
.end method

.method public setVideoURI(Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/view/IjkVideoView;->a(Ljava/lang/String;I)V

    return-void
.end method
