.class public final Lz5/t50;
.super Lz5/u50;
.source ""

# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;
.implements Landroid/media/MediaPlayer$OnBufferingUpdateListener;
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/media/MediaPlayer$OnInfoListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/media/MediaPlayer$OnVideoSizeChangedListener;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# static fields
.field public static final J:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public A:I

.field public B:I

.field public C:I

.field public D:Lz5/f60;

.field public final E:Z

.field public F:I

.field public G:Lcom/google/android/gms/internal/ads/a2;

.field public H:Z

.field public I:Ljava/lang/Integer;

.field public final t:Lz5/h60;

.field public final u:Lz5/i60;

.field public final v:Z

.field public w:I

.field public x:I

.field public y:Landroid/media/MediaPlayer;

.field public z:Landroid/net/Uri;


# direct methods
.method public static constructor <clinit>()V
    .registers 3

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lz5/t50;->J:Ljava/util/Map;

    const/16 v1, -0x3ec

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_IO"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, -0x3ef

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_MALFORMED"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, -0x3f2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_UNSUPPORTED"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, -0x6e

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_TIMED_OUT"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v1, 0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_VIDEO_RENDERING_START"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x64

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_SERVER_DIED"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_ERROR_UNKNOWN"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "MEDIA_INFO_UNKNOWN"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x2bc

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_VIDEO_TRACK_LAGGING"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x2bd

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_BUFFERING_START"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x2be

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_BUFFERING_END"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x320

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_BAD_INTERLEAVING"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x321

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_NOT_SEEKABLE"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x322

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_METADATA_UPDATE"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x385

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_UNSUPPORTED_SUBTITLE"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x386

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "MEDIA_INFO_SUBTITLE_TIMED_OUT"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lz5/h60;ZZLz5/i60;)V
    .registers 6

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

    const/4 p1, 0x0

    iput p1, p0, Lz5/t50;->w:I

    iput p1, p0, Lz5/t50;->x:I

    iput-boolean p1, p0, Lz5/t50;->H:Z

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/t50;->I:Ljava/lang/Integer;

    invoke-virtual {p0, p0}, Landroid/view/TextureView;->setSurfaceTextureListener(Landroid/view/TextureView$SurfaceTextureListener;)V

    iput-object p2, p0, Lz5/t50;->t:Lz5/h60;

    iput-object p5, p0, Lz5/t50;->u:Lz5/i60;

    iput-boolean p3, p0, Lz5/t50;->E:Z

    iput-boolean p4, p0, Lz5/t50;->v:Z

    invoke-virtual {p5, p0}, Lz5/i60;->a(Lz5/u50;)V

    return-void
.end method


# virtual methods
.method public final A()V
    .registers 8

    iget-boolean v0, p0, Lz5/t50;->v:Z

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_63

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    move-result v0

    if-lez v0, :cond_63

    iget v0, p0, Lz5/t50;->x:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_63

    const-string v0, "AdMediaPlayerView nudging MediaPlayer"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 1
    iget-object v1, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_26

    :try_start_22
    invoke-virtual {v1, v0, v0}, Landroid/media/MediaPlayer;->setVolume(FF)V
    :try_end_25
    .catch Ljava/lang/IllegalStateException; {:try_start_22 .. :try_end_25} :catch_2b

    goto :goto_2b

    :cond_26
    const-string v0, "AdMediaPlayerView setMediaPlayerVolume() called before onPrepared()."

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V

    .line 2
    :catch_2b
    :goto_2b
    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    move-result v0

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v1

    invoke-interface {v1}, Lu5/c;->b()J

    move-result-wide v1

    :cond_3e
    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v3

    if-eqz v3, :cond_5b

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v3

    if-ne v3, v0, :cond_5b

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v3

    invoke-interface {v3}, Lu5/c;->b()J

    move-result-wide v3

    sub-long/2addr v3, v1

    const-wide/16 v5, 0xfa

    cmp-long v3, v3, v5

    if-lez v3, :cond_3e

    :cond_5b
    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    invoke-virtual {p0}, Lz5/t50;->zzt()V

    :cond_63
    return-void
.end method

.method public final B(Z)V
    .registers 4

    const-string v0, "AdMediaPlayerView release"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iget-object v0, p0, Lz5/t50;->D:Lz5/f60;

    const/4 v1, 0x0

    if-eqz v0, :cond_f

    invoke-virtual {v0}, Lz5/f60;->b()V

    iput-object v1, p0, Lz5/t50;->D:Lz5/f60;

    :cond_f
    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_25

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    iput-object v1, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lz5/t50;->D(I)V

    if-eqz p1, :cond_25

    iput v0, p0, Lz5/t50;->x:I

    :cond_25
    return-void
.end method

.method public final C()Z
    .registers 3

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_f

    iget v0, p0, Lz5/t50;->w:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_f

    if-eqz v0, :cond_f

    const/4 v1, 0x1

    if-eq v0, v1, :cond_f

    return v1

    :cond_f
    const/4 v0, 0x0

    return v0
.end method

.method public final D(I)V
    .registers 4

    const/4 v0, 0x3

    if-ne p1, v0, :cond_11

    iget-object v0, p0, Lz5/t50;->u:Lz5/i60;

    invoke-virtual {v0}, Lz5/i60;->e()V

    iget-object v0, p0, Lz5/u50;->s:Lz5/k60;

    const/4 v1, 0x1

    .line 1
    iput-boolean v1, v0, Lz5/k60;->d:Z

    invoke-virtual {v0}, Lz5/k60;->b()V

    goto :goto_1f

    .line 2
    :cond_11
    iget v1, p0, Lz5/t50;->w:I

    if-ne v1, v0, :cond_1f

    iget-object v0, p0, Lz5/t50;->u:Lz5/i60;

    const/4 v1, 0x0

    .line 3
    iput-boolean v1, v0, Lz5/i60;->m:Z

    .line 4
    iget-object v0, p0, Lz5/u50;->s:Lz5/k60;

    invoke-virtual {v0}, Lz5/k60;->a()V

    :cond_1f
    :goto_1f
    iput p1, p0, Lz5/t50;->w:I

    return-void
.end method

.method public final g()Ljava/lang/String;
    .registers 4

    iget-boolean v0, p0, Lz5/t50;->E:Z

    const/4 v1, 0x1

    if-eq v1, v0, :cond_8

    const-string v0, ""

    goto :goto_a

    :cond_8
    const-string v0, " spherical"

    :goto_a
    const-string v1, "MediaPlayer"

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_17

    invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1c

    :cond_17
    new-instance v0, Ljava/lang/String;

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

    :goto_1c
    return-object v0
.end method

.method public final h(Lcom/google/android/gms/internal/ads/a2;)V
    .registers 2

    iput-object p1, p0, Lz5/t50;->G:Lcom/google/android/gms/internal/ads/a2;

    return-void
.end method

.method public final i(Ljava/lang/String;)V
    .registers 4

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-static {p1}, Lz5/bg;->c(Landroid/net/Uri;)Lz5/bg;

    move-result-object v0

    if-eqz v0, :cond_10

    iget-object v1, v0, Lz5/bg;->r:Ljava/lang/String;

    if-eqz v1, :cond_f

    goto :goto_10

    :cond_f
    return-void

    :cond_10
    :goto_10
    if-eqz v0, :cond_18

    iget-object p1, v0, Lz5/bg;->r:Ljava/lang/String;

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    :cond_18
    iput-object p1, p0, Lz5/t50;->z:Landroid/net/Uri;

    const/4 p1, 0x0

    iput p1, p0, Lz5/t50;->F:I

    invoke-virtual {p0}, Lz5/t50;->zzC()V

    invoke-virtual {p0}, Landroid/view/TextureView;->requestLayout()V

    invoke-virtual {p0}, Landroid/view/TextureView;->invalidate()V

    return-void
.end method

.method public final j()V
    .registers 2

    const-string v0, "AdMediaPlayerView stop"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_1a

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lz5/t50;->D(I)V

    iput v0, p0, Lz5/t50;->x:I

    :cond_1a
    iget-object v0, p0, Lz5/t50;->u:Lz5/i60;

    invoke-virtual {v0}, Lz5/i60;->c()V

    return-void
.end method

.method public final k()V
    .registers 4

    const-string v0, "AdMediaPlayerView play"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    const/4 v1, 0x3

    if-eqz v0, :cond_23

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    invoke-virtual {p0, v1}, Lz5/t50;->D(I)V

    iget-object v0, p0, Lz5/u50;->r:Lz5/c60;

    invoke-virtual {v0}, Lz5/c60;->a()V

    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v2, Lz5/r50;

    invoke-direct {v2, p0, v1}, Lz5/r50;-><init>(Lz5/t50;I)V

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_23
    iput v1, p0, Lz5/t50;->x:I

    return-void
.end method

.method public final l()V
    .registers 4

    const-string v0, "AdMediaPlayerView pause"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    const/4 v1, 0x4

    if-eqz v0, :cond_26

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_26

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    invoke-virtual {p0, v1}, Lz5/t50;->D(I)V

    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v2, Lz5/r50;

    invoke-direct {v2, p0, v1}, Lz5/r50;-><init>(Lz5/t50;I)V

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_26
    iput v1, p0, Lz5/t50;->x:I

    return-void
.end method

.method public final m()I
    .registers 2

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_d

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    move-result v0

    return v0

    :cond_d
    const/4 v0, -0x1

    return v0
.end method

.method public final n()I
    .registers 2

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_d

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    move-result v0

    return v0

    :cond_d
    const/4 v0, 0x0

    return v0
.end method

.method public final o(I)V
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

    const/16 v1, 0x22

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

    const-string v1, "AdMediaPlayerView seek "

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

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_25

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    const/4 p1, 0x0

    iput p1, p0, Lz5/t50;->F:I

    return-void

    :cond_25
    iput p1, p0, Lz5/t50;->F:I

    return-void
.end method

.method public final onBufferingUpdate(Landroid/media/MediaPlayer;I)V
    .registers 3

    iput p2, p0, Lz5/t50;->C:I

    return-void
.end method

.method public final onCompletion(Landroid/media/MediaPlayer;)V
    .registers 4

    const-string p1, "AdMediaPlayerView completion"

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    const/4 p1, 0x5

    invoke-virtual {p0, p1}, Lz5/t50;->D(I)V

    iput p1, p0, Lz5/t50;->x:I

    sget-object p1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v0, Lz5/r50;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lz5/r50;-><init>(Lz5/t50;I)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final onError(Landroid/media/MediaPlayer;II)Z
    .registers 6

    sget-object p1, Lz5/t50;->J:Ljava/util/Map;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    move-object v0, p1

    check-cast v0, Ljava/util/HashMap;

    invoke-virtual {v0, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p3

    check-cast p1, Ljava/util/HashMap;

    invoke-virtual {p1, p3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result p3

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    add-int/lit8 p3, p3, 0x26

    add-int/2addr p3, v0

    invoke-direct {v1, p3}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string p3, "AdMediaPlayerView MediaPlayer error: "

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

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

    const-string p3, ":"

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

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

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

    move-result-object p3

    invoke-static {p3}, Lz5/d50;->zzi(Ljava/lang/String;)V

    const/4 p3, -0x1

    invoke-virtual {p0, p3}, Lz5/t50;->D(I)V

    iput p3, p0, Lz5/t50;->x:I

    sget-object p3, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v0, Lz5/i3;

    invoke-direct {v0, p0, p2, p1}, Lz5/i3;-><init>(Lz5/t50;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p3, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    const/4 p1, 0x1

    return p1
.end method

.method public final onInfo(Landroid/media/MediaPlayer;II)Z
    .registers 6

    sget-object p1, Lz5/t50;->J:Ljava/util/Map;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    move-object v0, p1

    check-cast v0, Ljava/util/HashMap;

    invoke-virtual {v0, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p3

    check-cast p1, Ljava/util/HashMap;

    invoke-virtual {p1, p3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result p3

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    add-int/lit8 p3, p3, 0x25

    add-int/2addr p3, v0

    invoke-direct {v1, p3}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string p3, "AdMediaPlayerView MediaPlayer info: "

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

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

    const-string p2, ":"

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

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

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

    move-result-object p1

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public final onMeasure(II)V
    .registers 8

    iget v0, p0, Lz5/t50;->A:I

    invoke-static {v0, p1}, Landroid/view/TextureView;->getDefaultSize(II)I

    move-result v0

    iget v1, p0, Lz5/t50;->B:I

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

    move-result v1

    iget v2, p0, Lz5/t50;->A:I

    if-lez v2, :cond_7a

    iget v2, p0, Lz5/t50;->B:I

    if-lez v2, :cond_7a

    iget-object v2, p0, Lz5/t50;->D:Lz5/f60;

    if-nez v2, :cond_7a

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v0

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p1

    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v1

    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p2

    const/high16 v2, 0x40000000    # 2.0f

    if-ne v0, v2, :cond_42

    if-ne v1, v2, :cond_41

    iget v0, p0, Lz5/t50;->A:I

    mul-int v1, v0, p2

    iget v2, p0, Lz5/t50;->B:I

    mul-int v3, p1, v2

    if-ge v1, v3, :cond_3c

    div-int v0, v1, v2

    :goto_3a
    move v1, p2

    goto :goto_7a

    :cond_3c
    if-le v1, v3, :cond_60

    div-int v1, v3, v0

    goto :goto_52

    :cond_41
    move v0, v2

    :cond_42
    const/high16 v3, -0x80000000

    if-ne v0, v2, :cond_54

    iget v0, p0, Lz5/t50;->B:I

    mul-int/2addr v0, p1

    iget v2, p0, Lz5/t50;->A:I

    div-int/2addr v0, v2

    if-ne v1, v3, :cond_51

    if-le v0, p2, :cond_51

    goto :goto_60

    :cond_51
    move v1, v0

    :goto_52
    move v0, p1

    goto :goto_7a

    :cond_54
    if-ne v1, v2, :cond_64

    iget v1, p0, Lz5/t50;->A:I

    mul-int/2addr v1, p2

    iget v2, p0, Lz5/t50;->B:I

    div-int/2addr v1, v2

    if-ne v0, v3, :cond_62

    if-le v1, p1, :cond_62

    :cond_60
    :goto_60
    move v0, p1

    goto :goto_3a

    :cond_62
    move v0, v1

    goto :goto_3a

    :cond_64
    iget v2, p0, Lz5/t50;->A:I

    iget v4, p0, Lz5/t50;->B:I

    if-ne v1, v3, :cond_70

    if-le v4, p2, :cond_70

    mul-int v1, p2, v2

    div-int/2addr v1, v4

    goto :goto_72

    :cond_70
    move v1, v2

    move p2, v4

    :goto_72
    if-ne v0, v3, :cond_62

    if-le v1, p1, :cond_62

    mul-int/2addr v4, p1

    div-int v1, v4, v2

    goto :goto_52

    :cond_7a
    :goto_7a
    invoke-virtual {p0, v0, v1}, Landroid/view/TextureView;->setMeasuredDimension(II)V

    iget-object p1, p0, Lz5/t50;->D:Lz5/f60;

    if-eqz p1, :cond_84

    invoke-virtual {p1, v0, v1}, Lz5/f60;->a(II)V

    :cond_84
    return-void
.end method

.method public final onPrepared(Landroid/media/MediaPlayer;)V
    .registers 5

    const-string v0, "AdMediaPlayerView prepared"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lz5/t50;->D(I)V

    iget-object v0, p0, Lz5/t50;->u:Lz5/i60;

    invoke-virtual {v0}, Lz5/i60;->b()V

    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v1, Ll5/l;

    invoke-direct {v1, p0, p1}, Ll5/l;-><init>(Lz5/t50;Landroid/media/MediaPlayer;)V

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

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoWidth()I

    move-result v0

    iput v0, p0, Lz5/t50;->A:I

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoHeight()I

    move-result p1

    iput p1, p0, Lz5/t50;->B:I

    iget p1, p0, Lz5/t50;->F:I

    if-eqz p1, :cond_2b

    invoke-virtual {p0, p1}, Lz5/t50;->o(I)V

    :cond_2b
    invoke-virtual {p0}, Lz5/t50;->A()V

    iget p1, p0, Lz5/t50;->A:I

    iget v0, p0, Lz5/t50;->B:I

    new-instance v1, Ljava/lang/StringBuilder;

    const/16 v2, 0x3e

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v2, "AdMediaPlayerView stream dimensions: "

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

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, " x "

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

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

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

    move-result-object p1

    invoke-static {p1}, Lz5/d50;->zzh(Ljava/lang/String;)V

    iget p1, p0, Lz5/t50;->x:I

    const/4 v0, 0x3

    if-ne p1, v0, :cond_58

    invoke-virtual {p0}, Lz5/t50;->k()V

    :cond_58
    invoke-virtual {p0}, Lz5/t50;->zzt()V

    return-void
.end method

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

    const-string p1, "AdMediaPlayerView surface created"

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p0}, Lz5/t50;->zzC()V

    sget-object p1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance p2, Lz5/r50;

    const/4 p3, 0x1

    invoke-direct {p2, p0, p3}, Lz5/r50;-><init>(Lz5/t50;I)V

    invoke-virtual {p1, p2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

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

    const-string p1, "AdMediaPlayerView surface destroyed"

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iget-object p1, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz p1, :cond_13

    iget v0, p0, Lz5/t50;->F:I

    if-nez v0, :cond_13

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result p1

    iput p1, p0, Lz5/t50;->F:I

    :cond_13
    iget-object p1, p0, Lz5/t50;->D:Lz5/f60;

    if-eqz p1, :cond_1a

    invoke-virtual {p1}, Lz5/f60;->b()V

    :cond_1a
    sget-object p1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v0, Lz5/r50;

    const/4 v1, 0x2

    invoke-direct {v0, p0, v1}, Lz5/r50;-><init>(Lz5/t50;I)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    const/4 p1, 0x1

    invoke-virtual {p0, p1}, Lz5/t50;->B(Z)V

    return p1
.end method

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

    const-string p1, "AdMediaPlayerView surface changed"

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    iget p1, p0, Lz5/t50;->x:I

    iget v0, p0, Lz5/t50;->A:I

    const/4 v1, 0x0

    if-ne v0, p2, :cond_11

    iget v0, p0, Lz5/t50;->B:I

    if-ne v0, p3, :cond_11

    const/4 v1, 0x1

    :cond_11
    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_24

    const/4 v0, 0x3

    if-ne p1, v0, :cond_24

    if-eqz v1, :cond_24

    iget p1, p0, Lz5/t50;->F:I

    if-eqz p1, :cond_21

    invoke-virtual {p0, p1}, Lz5/t50;->o(I)V

    :cond_21
    invoke-virtual {p0}, Lz5/t50;->k()V

    :cond_24
    iget-object p1, p0, Lz5/t50;->D:Lz5/f60;

    if-eqz p1, :cond_2b

    invoke-virtual {p1, p2, p3}, Lz5/f60;->a(II)V

    :cond_2b
    sget-object p1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v0, Lz5/s50;

    invoke-direct {v0, p0, p2, p3}, Lz5/s50;-><init>(Lz5/t50;II)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

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

    iget-object v0, p0, Lz5/t50;->u:Lz5/i60;

    invoke-virtual {v0, p0}, Lz5/i60;->d(Lz5/u50;)V

    iget-object v0, p0, Lz5/u50;->r:Lz5/c60;

    iget-object v1, p0, Lz5/t50;->G:Lcom/google/android/gms/internal/ads/a2;

    invoke-virtual {v0, p1, v1}, Lz5/c60;->b(Landroid/graphics/SurfaceTexture;Lcom/google/android/gms/internal/ads/a2;)V

    return-void
.end method

.method public final onVideoSizeChanged(Landroid/media/MediaPlayer;II)V
    .registers 6

    new-instance v0, Ljava/lang/StringBuilder;

    const/16 v1, 0x39

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

    const-string v1, "AdMediaPlayerView size changed: "

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

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

    const-string p2, " x "

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

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

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

    move-result-object p2

    invoke-static {p2}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoWidth()I

    move-result p2

    iput p2, p0, Lz5/t50;->A:I

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoHeight()I

    move-result p1

    iput p1, p0, Lz5/t50;->B:I

    iget p2, p0, Lz5/t50;->A:I

    if-eqz p2, :cond_33

    if-eqz p1, :cond_33

    invoke-virtual {p0}, Landroid/view/TextureView;->requestLayout()V

    :cond_33
    return-void
.end method

.method public final onWindowVisibilityChanged(I)V
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

    const/16 v1, 0x3a

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

    const-string v1, "AdMediaPlayerView window visibility changed to "

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

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v1, Lo5/o;

    invoke-direct {v1, p0, p1}, Lo5/o;-><init>(Lz5/t50;I)V

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

    invoke-super {p0, p1}, Landroid/view/View;->onWindowVisibilityChanged(I)V

    return-void
.end method

.method public final p(FF)V
    .registers 4

    iget-object v0, p0, Lz5/t50;->D:Lz5/f60;

    if-eqz v0, :cond_7

    invoke-virtual {v0, p1, p2}, Lz5/f60;->c(FF)V

    :cond_7
    return-void
.end method

.method public final q()I
    .registers 2

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_9

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

    move-result v0

    return v0

    :cond_9
    const/4 v0, 0x0

    return v0
.end method

.method public final r()I
    .registers 2

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_9

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

    move-result v0

    return v0

    :cond_9
    const/4 v0, 0x0

    return v0
.end method

.method public final s()J
    .registers 5

    iget-object v0, p0, Lz5/t50;->I:Ljava/lang/Integer;

    if-eqz v0, :cond_10

    invoke-virtual {p0}, Lz5/t50;->u()J

    move-result-wide v0

    iget v2, p0, Lz5/t50;->C:I

    int-to-long v2, v2

    mul-long/2addr v0, v2

    const-wide/16 v2, 0x64

    div-long/2addr v0, v2

    return-wide v0

    :cond_10
    const-wide/16 v0, -0x1

    return-wide v0
.end method

.method public final t()J
    .registers 3

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public final toString()Ljava/lang/String;
    .registers 6

    const-class v0, Lz5/t50;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

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

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x1

    add-int/2addr v2, v3

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

    const-string v2, "@"

    invoke-static {v4, v0, v2, v1}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final u()J
    .registers 5

    iget-object v0, p0, Lz5/t50;->I:Ljava/lang/Integer;

    if-eqz v0, :cond_1c

    .line 1
    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_11

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    move-result v0

    goto :goto_12

    :cond_11
    const/4 v0, -0x1

    :goto_12
    int-to-long v0, v0

    .line 2
    iget-object v2, p0, Lz5/t50;->I:Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    int-to-long v2, v2

    mul-long/2addr v0, v2

    return-wide v0

    :cond_1c
    const-wide/16 v0, -0x1

    return-wide v0
.end method

.method public final v()I
    .registers 3

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1a

    if-lt v0, v1, :cond_19

    invoke-virtual {p0}, Lz5/t50;->C()Z

    move-result v0

    if-eqz v0, :cond_19

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getMetrics()Landroid/os/PersistableBundle;

    move-result-object v0

    const-string v1, "android.media.mediaplayer.dropped"

    invoke-virtual {v0, v1}, Landroid/os/PersistableBundle;->getInt(Ljava/lang/String;)I

    move-result v0

    return v0

    :cond_19
    const/4 v0, -0x1

    return v0
.end method

.method public final zzC()V
    .registers 7

    const-string v0, "AdMediaPlayerView init MediaPlayer"

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    invoke-virtual {p0}, Landroid/view/TextureView;->getSurfaceTexture()Landroid/graphics/SurfaceTexture;

    move-result-object v0

    iget-object v1, p0, Lz5/t50;->z:Landroid/net/Uri;

    if-eqz v1, :cond_c0

    if-nez v0, :cond_11

    goto/16 :goto_c0

    :cond_11
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lz5/t50;->B(Z)V

    const/4 v2, 0x1

    :try_start_16
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzs()Lcom/google/android/gms/ads/internal/overlay/zzw;

    new-instance v3, Landroid/media/MediaPlayer;

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

    iput-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnBufferingUpdateListener(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnInfoListener(Landroid/media/MediaPlayer$OnInfoListener;)V

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {v3, p0}, Landroid/media/MediaPlayer;->setOnVideoSizeChangedListener(Landroid/media/MediaPlayer$OnVideoSizeChangedListener;)V

    iput v1, p0, Lz5/t50;->C:I

    iget-boolean v3, p0, Lz5/t50;->E:Z

    if-eqz v3, :cond_7b

    new-instance v3, Lz5/f60;

    invoke-virtual {p0}, Landroid/view/TextureView;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Lz5/f60;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lz5/t50;->D:Lz5/f60;

    invoke-virtual {p0}, Landroid/view/TextureView;->getWidth()I

    move-result v4

    invoke-virtual {p0}, Landroid/view/TextureView;->getHeight()I

    move-result v5

    .line 1
    iput v4, v3, Lz5/f60;->D:I

    iput v5, v3, Lz5/f60;->C:I

    iput-object v0, v3, Lz5/f60;->F:Landroid/graphics/SurfaceTexture;

    .line 2
    iget-object v3, p0, Lz5/t50;->D:Lz5/f60;

    invoke-virtual {v3}, Ljava/lang/Thread;->start()V

    iget-object v3, p0, Lz5/t50;->D:Lz5/f60;

    .line 3
    iget-object v4, v3, Lz5/f60;->F:Landroid/graphics/SurfaceTexture;
    :try_end_64
    .catch Ljava/io/IOException; {:try_start_16 .. :try_end_64} :catch_ab
    .catch Ljava/lang/IllegalArgumentException; {:try_start_16 .. :try_end_64} :catch_a9
    .catch Ljava/lang/IllegalStateException; {:try_start_16 .. :try_end_64} :catch_a7

    const/4 v5, 0x0

    if-nez v4, :cond_69

    move-object v3, v5

    goto :goto_70

    :cond_69
    :try_start_69
    iget-object v4, v3, Lz5/f60;->K:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v4}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_6e
    .catch Ljava/lang/InterruptedException; {:try_start_69 .. :try_end_6e} :catch_6e
    .catch Ljava/io/IOException; {:try_start_69 .. :try_end_6e} :catch_ab
    .catch Ljava/lang/IllegalArgumentException; {:try_start_69 .. :try_end_6e} :catch_a9
    .catch Ljava/lang/IllegalStateException; {:try_start_69 .. :try_end_6e} :catch_a7

    :catch_6e
    :try_start_6e
    iget-object v3, v3, Lz5/f60;->E:Landroid/graphics/SurfaceTexture;

    :goto_70
    if-eqz v3, :cond_74

    move-object v0, v3

    goto :goto_7b

    .line 4
    :cond_74
    iget-object v3, p0, Lz5/t50;->D:Lz5/f60;

    invoke-virtual {v3}, Lz5/f60;->b()V

    iput-object v5, p0, Lz5/t50;->D:Lz5/f60;

    :cond_7b
    :goto_7b
    iget-object v3, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {p0}, Landroid/view/TextureView;->getContext()Landroid/content/Context;

    move-result-object v4

    iget-object v5, p0, Lz5/t50;->z:Landroid/net/Uri;

    invoke-virtual {v3, v4, v5}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;)V

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzt()Lcom/google/android/gms/ads/internal/overlay/zzx;

    new-instance v3, Landroid/view/Surface;

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    const/4 v3, 0x3

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

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

    invoke-virtual {p0, v2}, Lz5/t50;->D(I)V
    :try_end_a6
    .catch Ljava/io/IOException; {:try_start_6e .. :try_end_a6} :catch_ab
    .catch Ljava/lang/IllegalArgumentException; {:try_start_6e .. :try_end_a6} :catch_a9
    .catch Ljava/lang/IllegalStateException; {:try_start_6e .. :try_end_a6} :catch_a7

    return-void

    :catch_a7
    move-exception v0

    goto :goto_ac

    :catch_a9
    move-exception v0

    goto :goto_ac

    :catch_ab
    move-exception v0

    :goto_ac
    iget-object v3, p0, Lz5/t50;->z:Landroid/net/Uri;

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

    move-result-object v3

    const-string v4, "Failed to initialize MediaPlayer at "

    invoke-virtual {v4, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, v0}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    invoke-virtual {p0, v0, v2, v1}, Lz5/t50;->onError(Landroid/media/MediaPlayer;II)Z

    :cond_c0
    :goto_c0
    return-void
.end method

.method public final zzt()V
    .registers 4

    iget-object v0, p0, Lz5/u50;->s:Lz5/k60;

    .line 1
    iget-boolean v1, v0, Lz5/k60;->e:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_9

    move v1, v2

    goto :goto_b

    :cond_9
    iget v1, v0, Lz5/k60;->f:F

    :goto_b
    iget-boolean v0, v0, Lz5/k60;->c:Z

    if-eqz v0, :cond_10

    move v2, v1

    .line 2
    :cond_10
    iget-object v0, p0, Lz5/t50;->y:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_18

    :try_start_14
    invoke-virtual {v0, v2, v2}, Landroid/media/MediaPlayer;->setVolume(FF)V
    :try_end_17
    .catch Ljava/lang/IllegalStateException; {:try_start_14 .. :try_end_17} :catch_1d

    goto :goto_1d

    :cond_18
    const-string v0, "AdMediaPlayerView setMediaPlayerVolume() called before onPrepared()."

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V

    :catch_1d
    :goto_1d
    return-void
.end method
