VideoPlayView$1.smali

.class final Lcom/proxy/ad/impl/video/player/VideoPlayView$1;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/proxy/ad/impl/video/player/VideoPlayView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/proxy/ad/impl/video/player/VideoPlayView;


# direct methods
.method constructor <init>(Lcom/proxy/ad/impl/video/player/VideoPlayView;)V
    .registers 2

    iput-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

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

    return-void
.end method


# virtual methods
.method public final onSurfaceTextureAvailable(Landroid/graphics/SurfaceTexture;II)V
    .registers 6

    const-string p2, "VideoPlayView"

    const-string p3, "onSurfaceTextureAvailable"

    invoke-static {p2, p3}, Lcom/proxy/ad/log/Logger;->i(Ljava/lang/String;Ljava/lang/String;)V

    iget-object p2, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    invoke-static {p2, v0, v1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->a(Lcom/proxy/ad/impl/video/player/VideoPlayView;J)J

    new-instance p2, Landroid/view/Surface;

    invoke-direct {p2, p1}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->a(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Lcom/proxy/ad/impl/video/player/a;

    move-result-object p1

    :try_start_1b
    iget-object p3, p1, Lcom/proxy/ad/impl/video/player/a;->a:Landroid/media/MediaPlayer;

    invoke-virtual {p3, p2}, Landroid/media/MediaPlayer;->setSurface(Landroid/view/Surface;)V

    const/4 p2, 0x1

    iput-boolean p2, p1, Lcom/proxy/ad/impl/video/player/a;->e:Z
    :try_end_23
    .catch Ljava/lang/IllegalStateException; {:try_start_1b .. :try_end_23} :catch_24

    goto :goto_2b

    :catch_24
    const-string p1, "MediaPlayerWrapper"

    const-string p2, "setSurface IllegalStateException"

    invoke-static {p1, p2}, Lcom/proxy/ad/log/Logger;->e(Ljava/lang/String;Ljava/lang/String;)V

    :goto_2b
    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->a(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Lcom/proxy/ad/impl/video/player/a;

    move-result-object p1

    iget-object p2, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p2}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->b(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/proxy/ad/impl/video/player/a;->a(Ljava/lang/String;)V

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->c(Lcom/proxy/ad/impl/video/player/VideoPlayView;)V

    return-void
.end method

.method public final onSurfaceTextureDestroyed(Landroid/graphics/SurfaceTexture;)Z
    .registers 4

    const-string p1, "VideoPlayView"

    const-string v0, "onSurfaceTextureDestroyed"

    invoke-static {p1, v0}, Lcom/proxy/ad/log/Logger;->w(Ljava/lang/String;Ljava/lang/String;)V

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->d(Lcom/proxy/ad/impl/video/player/VideoPlayView;)V

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->a(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Lcom/proxy/ad/impl/video/player/a;

    move-result-object p1

    :try_start_12
    iget-object v0, p1, Lcom/proxy/ad/impl/video/player/a;->a:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    iget-object v0, p1, Lcom/proxy/ad/impl/video/player/a;->f:Ljava/lang/Runnable;

    invoke-static {v0}, Lcom/proxy/ad/a/c/b;->a(Ljava/lang/Runnable;)V
    :try_end_1c
    .catch Ljava/lang/IllegalStateException; {:try_start_12 .. :try_end_1c} :catch_1d

    goto :goto_24

    :catch_1d
    const-string v0, "MediaPlayerWrapper"

    const-string v1, "reset IllegalStateException"

    invoke-static {v0, v1}, Lcom/proxy/ad/log/Logger;->e(Ljava/lang/String;Ljava/lang/String;)V

    :goto_24
    const/4 v0, 0x0

    iput-boolean v0, p1, Lcom/proxy/ad/impl/video/player/a;->e:Z

    iput-boolean v0, p1, Lcom/proxy/ad/impl/video/player/a;->d:Z

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->e(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Z

    move-result p1

    if-nez p1, :cond_47

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->f(Lcom/proxy/ad/impl/video/player/VideoPlayView;)Z

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->g(Lcom/proxy/ad/impl/video/player/VideoPlayView;)I

    move-result p1

    if-lez p1, :cond_47

    iget-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayView$1;->a:Lcom/proxy/ad/impl/video/player/VideoPlayView;

    invoke-static {p1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->g(Lcom/proxy/ad/impl/video/player/VideoPlayView;)I

    move-result v1

    invoke-static {p1, v1}, Lcom/proxy/ad/impl/video/player/VideoPlayView;->a(Lcom/proxy/ad/impl/video/player/VideoPlayView;I)I

    :cond_47
    return v0
.end method

.method public final onSurfaceTextureSizeChanged(Landroid/graphics/SurfaceTexture;II)V
    .registers 4

    const-string p1, "VideoPlayView"

    const-string p2, "onSurfaceTextureSizeChanged"

    invoke-static {p1, p2}, Lcom/proxy/ad/log/Logger;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public final onSurfaceTextureUpdated(Landroid/graphics/SurfaceTexture;)V
    .registers 2

    return-void
.end method