.class public Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;
.super Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;
.source "AdTextureVideoPlayer.java"

# interfaces
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/view/TextureView$SurfaceTextureListener;
.implements Landroid/view/View$OnAttachStateChangeListener;


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


# instance fields
.field private c:Landroid/view/TextureView;

.field private d:Landroid/media/MediaPlayer;

.field private e:Landroid/view/Surface;

.field private f:Z

.field private g:Lcom/moji/mjad/splash/data/AdSplashVideo;

.field private h:Z

.field private i:Z


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

    .line 35
    invoke-direct {p0, p1}, Lcom/moji/mjad/splash/view/videoplayer/AdSplashVideoPlayer;-><init>(Landroid/content/Context;)V

    .line 36
    new-instance v0, Landroid/view/TextureView;

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

    iput-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c:Landroid/view/TextureView;

    .line 37
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c:Landroid/view/TextureView;

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

    .line 38
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c:Landroid/view/TextureView;

    invoke-virtual {p1, p0}, Landroid/view/TextureView;->addOnAttachStateChangeListener(Landroid/view/View$OnAttachStateChangeListener;)V

    return-void
.end method

.method private c()V
    .locals 2

    .line 151
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    invoke-virtual {v0}, Landroid/view/Surface;->isValid()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->f:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->h:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    .line 152
    iput-boolean v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->f:Z

    .line 154
    :try_start_0
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 155
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 156
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

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

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

    iput-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    .line 159
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

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

    .line 160
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v1, v1, Lcom/moji/mjad/splash/data/AdSplashVideo;->filePath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setDataSource(Ljava/lang/String;)V

    .line 161
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    const/4 v1, 0x3

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

    .line 162
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 163
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 164
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 165
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->prepareAsync()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "AdTextureVideoPlayer"

    .line 167
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 168
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz v0, :cond_1

    .line 169
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onError(Z)V

    :cond_1
    :goto_0
    return-void
.end method


# virtual methods
.method public a()Landroid/view/View;
    .locals 1

    .line 65
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c:Landroid/view/TextureView;

    return-object v0
.end method

.method public a(Lcom/moji/mjad/splash/data/AdSplashVideo;)V
    .locals 2

    if-eqz p1, :cond_3

    .line 45
    iput-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    .line 46
    new-instance p1, Ljava/io/File;

    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->filePath:Ljava/lang/String;

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

    .line 47
    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v0, v0, Lcom/moji/mjad/splash/data/AdSplashVideo;->md5:Ljava/lang/String;

    invoke-virtual {p0, p1, v0}, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->a(Ljava/io/File;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    iput-boolean p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->h:Z

    .line 48
    iget-boolean p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->h:Z

    if-eqz p1, :cond_2

    .line 49
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_1

    .line 50
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onReadyStart()V

    :cond_1
    const-string p1, "sea"

    const-string v0, "sea AdTextureVideoPlayer startPlay"

    .line 52
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 53
    invoke-direct {p0}, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c()V

    goto :goto_1

    .line 54
    :cond_2
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_4

    const-string p1, "AdTextureVideoPlayer"

    .line 55
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "--------splash video file "

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

    iget-object v1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v1, v1, Lcom/moji/mjad/splash/data/AdSplashVideo;->filePath:Ljava/lang/String;

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

    const-string v1, " is not exists! MD5\uff1a"

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

    iget-object v1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->g:Lcom/moji/mjad/splash/data/AdSplashVideo;

    iget-object v1, v1, Lcom/moji/mjad/splash/data/AdSplashVideo;->md5:Ljava/lang/String;

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

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

    move-result-object v0

    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 56
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onDataError()V

    goto :goto_1

    .line 58
    :cond_3
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_4

    .line 59
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onDataError()V

    :cond_4
    :goto_1
    return-void
.end method

.method public bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 24
    check-cast p1, Lcom/moji/mjad/splash/data/AdSplashVideo;

    invoke-virtual {p0, p1}, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->a(Lcom/moji/mjad/splash/data/AdSplashVideo;)V

    return-void
.end method

.method public a(Z)V
    .locals 0

    return-void
.end method

.method public b()V
    .locals 1

    .line 81
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 82
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 83
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    :cond_0
    return-void
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 1

    const-string p1, "AdTextureVideoPlayer"

    const-string v0, "sea-AdTextureVideoPlayer-onCompletion"

    .line 124
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 125
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_0

    .line 126
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onCompletion()V

    :cond_0
    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 0

    const-string p1, "AdTextureVideoPlayer"

    const-string p2, "sea-AdTextureVideoPlayer-onError"

    .line 143
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 144
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_0

    .line 145
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    const/4 p2, 0x0

    invoke-interface {p1, p2}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onError(Z)V

    :cond_0
    const/4 p1, 0x1

    return p1
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 1

    const-string p1, "AdTextureVideoPlayer"

    const-string v0, "sea-AdTextureVideoPlayer-onPrepared"

    .line 132
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 133
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

    if-eqz p1, :cond_0

    .line 134
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->d:Landroid/media/MediaPlayer;

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

    .line 136
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_1

    .line 137
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onPrepared()V

    :cond_1
    return-void
.end method

.method public onSurfaceTextureAvailable(Landroid/graphics/SurfaceTexture;II)V
    .locals 0

    if-eqz p1, :cond_0

    .line 90
    new-instance p2, Landroid/view/Surface;

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

    iput-object p2, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    :cond_0
    const-string p1, "AdTextureVideoPlayer"

    const-string p2, "sea-AdTextureVideoPlayer-onSurfaceTextureAvailable"

    .line 92
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 93
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    invoke-virtual {p1}, Landroid/view/Surface;->isValid()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 94
    invoke-direct {p0}, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->c()V

    goto :goto_0

    .line 95
    :cond_1
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_2

    .line 96
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    const/4 p2, 0x0

    invoke-interface {p1, p2}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onError(Z)V

    :cond_2
    :goto_0
    return-void
.end method

.method public onSurfaceTextureDestroyed(Landroid/graphics/SurfaceTexture;)Z
    .locals 2

    const-string v0, "AdTextureVideoPlayer"

    const-string v1, "sea-AdTextureVideoPlayer-onSurfaceTextureDestroyed"

    .line 107
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 108
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    if-eqz v0, :cond_0

    .line 109
    iget-object v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->e:Landroid/view/Surface;

    invoke-virtual {v0}, Landroid/view/Surface;->release()V

    :cond_0
    if-eqz p1, :cond_1

    .line 112
    invoke-virtual {p1}, Landroid/graphics/SurfaceTexture;->release()V

    :cond_1
    const/4 p1, 0x1

    return p1
.end method

.method public onSurfaceTextureSizeChanged(Landroid/graphics/SurfaceTexture;II)V
    .locals 0

    const-string p1, "AdTextureVideoPlayer"

    const-string p2, "sea-AdTextureVideoPlayer-onSurfaceTextureSizeChanged"

    .line 102
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onSurfaceTextureUpdated(Landroid/graphics/SurfaceTexture;)V
    .locals 1

    const-string p1, "AdTextureVideoPlayer"

    const-string v0, "sea-AdTextureVideoPlayer-onSurfaceTextureUpdated"

    .line 119
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onViewAttachedToWindow(Landroid/view/View;)V
    .locals 4

    const-string v0, "sea"

    .line 177
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "sea AdTextureVideoPlayer onAttachedToWindow isHardwareAccelerated:"

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

    const/4 v2, 0x1

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->isHardwareAccelerated()Z

    move-result v3

    if-eqz v3, :cond_0

    const/4 v3, 0x1

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_1

    .line 178
    invoke-virtual {p1}, Landroid/view/View;->isHardwareAccelerated()Z

    move-result v0

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->i:Z

    if-nez v0, :cond_1

    .line 179
    iput-boolean v2, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->i:Z

    const/16 v0, 0x8

    .line 180
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 181
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    if-eqz p1, :cond_1

    .line 182
    iget-object p1, p0, Lcom/moji/mjad/splash/view/videoplayer/AdTextureVideoPlayer;->b:Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;

    invoke-interface {p1, v2}, Lcom/moji/mjad/splash/view/videoplayer/AbsAdVideoPlayer$OnVideoStatListener;->onError(Z)V

    :cond_1
    return-void
.end method

.method public onViewDetachedFromWindow(Landroid/view/View;)V
    .locals 0

    return-void
.end method
