.class Lcom/view/d;
.super Ljava/lang/Object;

# interfaces
.implements Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;


# instance fields
.field final synthetic a:Lcom/view/IjkVideoView;


# direct methods
.method constructor <init>(Lcom/view/IjkVideoView;)V
    .locals 0

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

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPrepared(Ltv/danmaku/ijk/media/player/IMediaPlayer;)V
    .locals 2

    :try_start_0
    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    invoke-interface {p1}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->getVideoWidth()I

    move-result v1

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

    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    invoke-interface {p1}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->getVideoHeight()I

    move-result v1

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

    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    iget-object v1, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/view/IjkVideoView;->a(Lcom/view/IjkVideoView;Landroid/view/SurfaceHolder;)V

    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    invoke-static {v0}, Lcom/view/IjkVideoView;->d(Lcom/view/IjkVideoView;)Landroid/view/SurfaceHolder;

    move-result-object v0

    invoke-interface {p1, v0}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    invoke-interface {p1}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->start()V

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->setScreenOnWhilePlaying(Z)V

    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    invoke-static {v0}, Lcom/view/IjkVideoView;->e(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/view/d;->a:Lcom/view/IjkVideoView;

    invoke-static {v0}, Lcom/view/IjkVideoView;->e(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;

    move-result-object v0

    invoke-interface {v0, p1}, Ltv/danmaku/ijk/media/player/IMediaPlayer$OnPreparedListener;->onPrepared(Ltv/danmaku/ijk/media/player/IMediaPlayer;)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
