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

# interfaces
.implements Landroid/widget/MediaController$MediaPlayerControl;


# 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/h;->a:Lcom/view/IjkVideoView;

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

    return-void
.end method


# virtual methods
.method public canPause()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public canSeekBackward()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public canSeekForward()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public getAudioSessionId()I
    .locals 1

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

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

    move-result v0

    :goto_0
    return v0

    :cond_0
    new-instance v0, Landroid/media/MediaPlayer;

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

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getAudioSessionId()I

    move-result v0

    goto :goto_0
.end method

.method public getBufferPercentage()I
    .locals 1

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->h(Lcom/view/IjkVideoView;)I

    move-result v0

    return v0
.end method

.method public getCurrentPosition()I
    .locals 2

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

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

    move-result-wide v0

    long-to-int v0, v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getDuration()I
    .locals 2

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

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

    move-result-wide v0

    long-to-int v0, v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, -0x1

    goto :goto_0
.end method

.method public isPlaying()Z
    .locals 1

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    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

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public pause()V
    .locals 1

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

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

    :cond_0
    return-void
.end method

.method public seekTo(I)V
    .locals 4

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    int-to-long v2, p1

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

    :cond_0
    return-void
.end method

.method public start()V
    .locals 1

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

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

    invoke-static {v0}, Lcom/view/IjkVideoView;->g(Lcom/view/IjkVideoView;)Ltv/danmaku/ijk/media/player/IjkMediaPlayer;

    move-result-object v0

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

    :cond_0
    return-void
.end method
