NativeVideoView.smali

.class public Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;
.super Landroid/widget/FrameLayout;
.source ""

# interfaces
.implements Lcom/fulishe/fs/newvideo/renderview/a;
.implements Lcom/fulishe/shadow/base/e;
.implements Lcom/fulishe/shadow/base/i$a;


# static fields
.field public static final a:Ljava/lang/String;


# instance fields
.field public final b:Landroid/content/Context;

.field public final c:Lcom/fulishe/fs/newvideo/renderview/b;

.field public d:Lcom/fulishe/fs/c/b/d;

.field public e:Lcom/fulishe/shadow/base/i;

.field public f:Z

.field public g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/Runnable;",
            ">;"
        }
    .end annotation
.end field

.field public h:I

.field public i:I

.field public j:J

.field public k:J

.field public l:J

.field public m:Lcom/fulishe/shadow/base/e$d;

.field public n:Lcom/fulishe/shadow/base/e$a;

.field public o:Lcom/fulishe/shadow/base/e$b;

.field public p:Lcom/fulishe/shadow/base/e$c;

.field public q:Landroid/net/Uri;

.field public r:I

.field public final s:Ljava/lang/Runnable;


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

    const-class v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;

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

    move-result-object v0

    sput-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 9

    const/4 v1, 0x0

    const/4 v6, -0x2

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

    new-instance v0, Lcom/fulishe/fs/newvideo/nativevideo/b;

    invoke-direct {v0, p0}, Lcom/fulishe/fs/newvideo/nativevideo/b;-><init>(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)V

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->s:Ljava/lang/Runnable;

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    new-instance v0, Lcom/fulishe/shadow/base/i;

    invoke-direct {v0, p0}, Lcom/fulishe/shadow/base/i;-><init>(Lcom/fulishe/shadow/base/i$a;)V

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;

    move-result-object v0

    const-string v2, "MemTotal"

    invoke-interface {v0, p1, v2}, Lcom/fulishe/shadow/base/m;->f(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_23

    const-string v0, "0"

    :cond_23
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

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

    move-result v0

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

    const/16 v3, 0x14

    if-ne v2, v3, :cond_79

    int-to-double v2, v0

    const-wide/high16 v4, 0x4138000000000000L    # 1572864.0

    cmpg-double v0, v2, v4

    if-gez v0, :cond_79

    const/4 v0, 0x1

    :goto_39
    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->j()Z

    move-result v2

    if-nez v2, :cond_4d

    if-nez v0, :cond_4d

    invoke-static {}, Lcom/fulishe/fs/c/b;->d()Z

    move-result v0

    if-eqz v0, :cond_4d

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

    const/16 v2, 0xe

    if-ge v0, v2, :cond_7b

    :cond_4d
    new-instance v0, Lcom/fulishe/fs/newvideo/renderview/SSRenderSurfaceView;

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    invoke-direct {v0, v2}, Lcom/fulishe/fs/newvideo/renderview/SSRenderSurfaceView;-><init>(Landroid/content/Context;)V

    sget-object v2, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v3, "use SurfaceView......"

    invoke-static {v2, v3}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    :goto_5b
    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v6, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0x11

    iput v3, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    invoke-virtual {p0, v0, v1, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    invoke-interface {v0, p0}, Lcom/fulishe/fs/newvideo/renderview/b;->setRenderCallback(Lcom/fulishe/fs/newvideo/renderview/a;)V

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    new-instance v1, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView$a;

    invoke-direct {v1, p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView$a;-><init>(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)V

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    return-void

    :cond_79
    move v0, v1

    goto :goto_39

    :cond_7b
    new-instance v0, Lcom/fulishe/fs/newvideo/renderview/SSRenderTextureView;

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    invoke-direct {v0, v2}, Lcom/fulishe/fs/newvideo/renderview/SSRenderTextureView;-><init>(Landroid/content/Context;)V

    sget-object v2, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v3, "use TextureView......"

    invoke-static {v2, v3}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_5b
.end method

.method public static synthetic a(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;I)I
    .registers 2

    iput p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->h:I

    return p1
.end method

.method public static synthetic a(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)Lcom/fulishe/fs/c/b/d;
    .registers 2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    return-object v0
.end method

.method private a(FF)V
    .registers 6

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v1, :cond_12

    cmpl-float v1, p1, v0

    if-nez v1, :cond_13

    :goto_9
    :try_start_9
    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v1}, Lcom/fulishe/fs/c/b/d;->b()Landroid/media/MediaPlayer;

    move-result-object v1

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

    :cond_12
    :goto_12
    return-void

    :cond_13
    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->k()F
    :try_end_16
    .catchall {:try_start_9 .. :try_end_16} :catchall_1a

    move-result v0

    div-float v0, p1, v0

    goto :goto_9

    :catchall_1a
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "setVolumeNative error"

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

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v0}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;)V

    goto :goto_12
.end method

.method private a(Ljava/lang/Runnable;)V
    .registers 3

    if-eqz p1, :cond_b

    iget-boolean v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->f:Z

    if-eqz v0, :cond_c

    if-eqz v0, :cond_c

    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    :cond_b
    :goto_b
    return-void

    :cond_c
    invoke-direct {p0, p1}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b(Ljava/lang/Runnable;)V

    goto :goto_b
.end method

.method private a(II)Z
    .registers 6

    const/4 v0, 0x1

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "OnError - Error code: "

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

    move-result-object v1

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

    move-result-object v1

    const-string v2, " Extra code: "

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

    move-result-object v1

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

    move-result-object v1

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

    move-result-object v1

    const-string v2, "NativeVideoView"

    invoke-static {v2, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    sparse-switch p1, :sswitch_data_32

    if-eq p2, v0, :cond_31

    const/16 v1, 0x2bc

    if-eq p2, v1, :cond_31

    const/16 v1, 0x320

    if-eq p2, v1, :cond_31

    const/4 v0, 0x0

    :cond_31
    :sswitch_31
    return v0

    :sswitch_data_32
    .sparse-switch
        -0x3f2 -> :sswitch_31
        -0x3ef -> :sswitch_31
        -0x3ec -> :sswitch_31
        -0x6e -> :sswitch_31
        0x64 -> :sswitch_31
        0xc8 -> :sswitch_31
    .end sparse-switch
.end method

.method public static synthetic b(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;I)I
    .registers 2

    iput p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->i:I

    return p1
.end method

.method public static synthetic b(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)V
    .registers 1

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->p()V

    return-void
.end method

.method private b(Ljava/lang/Runnable;)V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    if-nez v0, :cond_f

    new-instance v0, Ljava/util/ArrayList;

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

    invoke-static {v0}, Ljava/util/Collections;->synchronizedList(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    :cond_f
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public static synthetic c(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)J
    .registers 3

    iget-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->k:J

    return-wide v0
.end method

.method public static synthetic d(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)Lcom/fulishe/shadow/base/i;
    .registers 2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    return-object v0
.end method

.method private j()Z
    .registers 3

    sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v1, "C8817D"

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

    move-result v0

    return v0
.end method

.method private k()F
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v0

    int-to-float v0, v0

    return v0
.end method

.method private l()V
    .registers 1

    invoke-virtual {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->i()V

    return-void
.end method

.method private m()V
    .registers 9

    const/4 v0, 0x1

    :try_start_1
    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v1, :cond_b9

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v1}, Lcom/fulishe/fs/c/b/d;->b()Landroid/media/MediaPlayer;

    move-result-object v1

    if-eqz v1, :cond_b9

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->orientation:I

    if-ne v1, v0, :cond_ba

    move v2, v0

    :goto_1c
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    int-to-float v3, v1

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    int-to-float v0, v0

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v1}, Lcom/fulishe/fs/c/b/d;->b()Landroid/media/MediaPlayer;

    move-result-object v1

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

    move-result v4

    int-to-float v4, v4

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

    move-result v1

    int-to-float v1, v1

    sget-object v5, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "videoHeight="

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

    move-result-object v6

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

    move-result-object v6

    const-string v7, ",videoWidth="

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

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

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

    move-result-object v6

    invoke-static {v5, v6}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v5, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "screenWidth="

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

    move-result-object v6

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, ",screenHeight="

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

    move-result-object v6

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v5, v0}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    cmpl-float v0, v4, v1

    if-ltz v0, :cond_b9

    const/4 v0, 0x0

    if-eqz v2, :cond_d8

    mul-float v0, v1, v3

    div-float/2addr v0, v4

    move v1, v0

    :goto_8b
    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Float;->isNaN()Z

    move-result v0

    if-nez v0, :cond_b9

    if-eqz v2, :cond_be

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    float-to-int v2, v3

    float-to-int v1, v1

    invoke-direct {v0, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0x11

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    move-object v1, v0

    :goto_a3
    if-eqz v1, :cond_b9

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    instance-of v0, v0, Landroid/view/TextureView;

    if-eqz v0, :cond_c1

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    check-cast v0, Landroid/view/TextureView;

    invoke-virtual {v0, v1}, Landroid/view/TextureView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_b2
    :goto_b2
    sget-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v1, "changeSize=end"

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_b9
    :goto_b9
    return-void

    :cond_ba
    const/4 v0, 0x0

    move v2, v0

    goto/16 :goto_1c

    :cond_be
    const/4 v0, 0x0

    move-object v1, v0

    goto :goto_a3

    :cond_c1
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    instance-of v0, v0, Landroid/view/SurfaceView;

    if-eqz v0, :cond_b2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    check-cast v0, Landroid/view/SurfaceView;

    invoke-virtual {v0, v1}, Landroid/view/SurfaceView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_ce
    .catchall {:try_start_1 .. :try_end_ce} :catchall_cf

    goto :goto_b2

    :catchall_cf
    move-exception v0

    sget-object v1, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v2, "changeSize error"

    invoke-static {v1, v2, v0}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_b9

    :cond_d8
    move v1, v0

    goto :goto_8b
.end method

.method private n()Z
    .registers 6

    const/4 v1, 0x1

    const/4 v0, 0x0

    sget-object v2, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "retryCount="

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

    move-result-object v3

    iget v4, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->r:I

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

    move-result-object v3

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

    move-result-object v3

    invoke-static {v2, v3}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->r:I

    if-lt v2, v1, :cond_21

    :cond_20
    :goto_20
    return v0

    :cond_21
    iget-object v3, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v3, :cond_20

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->r:I

    sget-object v2, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "isPlaying="

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

    move-result-object v3

    iget-object v4, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v4}, Lcom/fulishe/fs/c/b/d;->i()Z

    move-result v4

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

    move-result-object v3

    const-string v4, ",isPaused="

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

    move-result-object v3

    iget-object v4, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v4}, Lcom/fulishe/fs/c/b/d;->k()Z

    move-result v4

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

    move-result-object v3

    const-string v4, ",isPrepared="

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

    move-result-object v3

    iget-object v4, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v4}, Lcom/fulishe/fs/c/b/d;->l()Z

    move-result v4

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

    move-result-object v3

    const-string v4, ",isStarted="

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

    move-result-object v3

    iget-object v4, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v4}, Lcom/fulishe/fs/c/b/d;->j()Z

    move-result v4

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

    move-result-object v3

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

    move-result-object v3

    invoke-static {v2, v3}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v2}, Lcom/fulishe/fs/c/b/d;->i()Z

    move-result v2

    if-eqz v2, :cond_97

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v2}, Lcom/fulishe/fs/c/b/d;->k()Z

    move-result v2

    if-eqz v2, :cond_97

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v2}, Lcom/fulishe/fs/c/b/d;->l()Z

    move-result v2

    if-eqz v2, :cond_97

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v2}, Lcom/fulishe/fs/c/b/d;->j()Z

    move-result v2

    if-nez v2, :cond_20

    :cond_97
    move v0, v1

    goto :goto_20
.end method

.method private o()V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    if-eqz v0, :cond_2a

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2a

    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

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

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_15
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_25

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    goto :goto_15

    :cond_25
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_2a
    return-void
.end method

.method private p()V
    .registers 5

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->q()V

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->s:Ljava/lang/Runnable;

    const-wide/16 v2, 0x320

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

    return-void
.end method

.method private q()V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->s:Ljava/lang/Runnable;

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

    return-void
.end method


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

    return-object p0
.end method

.method public a(I)V
    .registers 8

    const/4 v5, 0x1

    iget-wide v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->l:J

    iput-wide v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->l:J

    iget-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->j:J

    cmp-long v4, v0, v2

    if-lez v4, :cond_1a

    :goto_b
    iput-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->j:J

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_19

    iget-wide v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->l:J

    invoke-virtual {v0, v5, v2, v3, v5}, Lcom/fulishe/fs/c/b/d;->a(ZJZ)V

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->p()V

    :cond_19
    return-void

    :cond_1a
    move-wide v0, v2

    goto :goto_b
.end method

.method public a(Landroid/graphics/SurfaceTexture;II)V
    .registers 5

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->f:Z

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_d

    invoke-virtual {v0, p1}, Lcom/fulishe/fs/c/b/d;->a(Landroid/graphics/SurfaceTexture;)V

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o()V

    :cond_d
    return-void
.end method

.method public a(Landroid/os/Message;)V
    .registers 6

    const/4 v2, 0x1

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_106

    :cond_6
    :goto_6
    return-void

    :sswitch_7
    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->n()Z

    move-result v0

    if-eqz v0, :cond_1e

    sget-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v1, "CALLBACK_ON_RETRY_VIDEO_TIME-....\u91cd\u8bd5...."

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->i()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->b()V

    goto :goto_6

    :cond_1e
    sget-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v1, "\u4e0d\u6ee1\u8db3\u6761\u4ef6\uff0c\u65e0\u6cd5\u91cd\u8bd5"

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_6

    :sswitch_26
    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->m()V

    goto :goto_6

    :sswitch_2a
    sget-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v1, "SSMediaPlayerWrapper \u91ca\u653e\u4e86\u3002\u3002\u3002\u3002\u3002"

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_6

    :sswitch_32
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o:Lcom/fulishe/shadow/base/e$b;

    if-eqz v0, :cond_42

    const-string v0, "SSMediaPlayerWrapper"

    const-string v1, "callback CALLBACK_ON_PLAYER_ERROR()"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o:Lcom/fulishe/shadow/base/e$b;

    invoke-interface {v0, v2, v2}, Lcom/fulishe/shadow/base/e$b;->a(II)Z

    :cond_42
    const-string v0, "fbx"

    const-string v1, "\u64ad\u653e\u5668\u72b6\u6001\u51fa\u9519 STAT_ERROR 200 \u3001\u3001\u3001\u3001\u3001\u3001\u3001"

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->l()V

    goto :goto_6

    :sswitch_4d
    :try_start_4d
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->b()Landroid/media/MediaPlayer;

    move-result-object v0

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

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->k:J
    :try_end_5a
    .catchall {:try_start_4d .. :try_end_5a} :catchall_62

    :goto_5a
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->m:Lcom/fulishe/shadow/base/e$d;

    if-eqz v0, :cond_6

    invoke-interface {v0}, Lcom/fulishe/shadow/base/e$d;->b()V

    goto :goto_6

    :catchall_62
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_5a

    :sswitch_67
    sget-object v0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a:Ljava/lang/String;

    const-string v1, "CALLBACK_ON_INFO"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget v0, p1, Landroid/os/Message;->arg1:I

    iget v1, p1, Landroid/os/Message;->arg2:I

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->p:Lcom/fulishe/shadow/base/e$c;

    if-eqz v2, :cond_6

    invoke-interface {v2, v0, v1}, Lcom/fulishe/shadow/base/e$c;->b(II)Z

    goto :goto_6

    :sswitch_7a
    iget v0, p1, Landroid/os/Message;->arg1:I

    iget v1, p1, Landroid/os/Message;->arg2:I

    const-string v2, "fbx"

    const-string v3, "CALLBACK_ON_ERROR\u3001\u3001before isVideoPlaying\u3001\u3001\u3001\u3001\u3001"

    invoke-static {v2, v3}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o:Lcom/fulishe/shadow/base/e$b;

    if-eqz v2, :cond_95

    const-string v2, "SSMediaPlayerWrapper"

    const-string v3, "callback onError()"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o:Lcom/fulishe/shadow/base/e$b;

    invoke-interface {v2, v0, v1}, Lcom/fulishe/shadow/base/e$b;->a(II)Z

    :cond_95
    invoke-virtual {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e()Z

    move-result v2

    if-nez v2, :cond_6

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "\u51fa\u9519\u540e errorcode,extra\u3001\u3001\u3001\u3001\u3001\u3001\u3001"

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

    move-result-object v2

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

    move-result-object v2

    const-string v3, ","

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

    move-result-object v2

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

    move-result-object v2

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

    move-result-object v2

    const-string v3, "fbx"

    invoke-static {v3, v2}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0, v0, v1}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a(II)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string v0, "fbx"

    const-string v1, "\u51fa\u9519\u540e\u5c55\u793a\u7ed3\u679c\u9875\u3001\u3001\u3001\u3001\u3001\u3001\u3001"

    invoke-static {v0, v1}, Lcom/fulishe/shadow/base/p;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->i()V

    goto/16 :goto_6

    :sswitch_cf
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->n:Lcom/fulishe/shadow/base/e$a;

    if-eqz v0, :cond_6

    invoke-interface {v0}, Lcom/fulishe/shadow/base/e$a;->h()V

    goto/16 :goto_6

    :sswitch_d8
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    instance-of v1, v0, Ljava/lang/Long;

    if-eqz v1, :cond_6

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->j:J

    goto/16 :goto_6

    :sswitch_e8
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    instance-of v1, v0, Ljava/lang/Long;

    if-eqz v1, :cond_6

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-lez v0, :cond_6

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->k:J

    goto/16 :goto_6

    :sswitch_data_106
    .sparse-switch
        0x6c -> :sswitch_e8
        0x6d -> :sswitch_d8
        0x12e -> :sswitch_cf
        0x12f -> :sswitch_7a
        0x130 -> :sswitch_67
        0x131 -> :sswitch_4d
        0x134 -> :sswitch_32
        0x135 -> :sswitch_2a
        0x137 -> :sswitch_26
        0x138 -> :sswitch_7
    .end sparse-switch
.end method

.method public a(Landroid/view/SurfaceHolder;)V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    invoke-interface {v0}, Lcom/fulishe/fs/newvideo/renderview/b;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    if-ne p1, v0, :cond_15

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->f:Z

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_15

    invoke-virtual {v0, p1}, Lcom/fulishe/fs/c/b/d;->a(Landroid/view/SurfaceHolder;)V

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o()V

    :cond_15
    return-void
.end method

.method public a(Landroid/view/SurfaceHolder;III)V
    .registers 5

    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;)Z
    .registers 3

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->f:Z

    const/4 v0, 0x1

    return v0
.end method

.method public b()V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-nez v0, :cond_28

    new-instance v0, Lcom/fulishe/fs/c/b/d;

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    invoke-direct {v0, v1}, Lcom/fulishe/fs/c/b/d;-><init>(Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    new-instance v0, Lcom/fulishe/fs/c/a/a;

    invoke-direct {v0}, Lcom/fulishe/fs/c/a/a;-><init>()V

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->q:Landroid/net/Uri;

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

    move-result-object v1

    iput-object v1, v0, Lcom/fulishe/fs/c/a/a;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    invoke-virtual {v1, v0}, Lcom/fulishe/fs/c/b/d;->a(Lcom/fulishe/fs/c/a/a;)V

    new-instance v0, Lcom/fulishe/fs/newvideo/nativevideo/a;

    invoke-direct {v0, p0}, Lcom/fulishe/fs/newvideo/nativevideo/a;-><init>(Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;)V

    invoke-direct {p0, v0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a(Ljava/lang/Runnable;)V

    :goto_27
    return-void

    :cond_28
    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->f()V

    invoke-direct {p0}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->p()V

    goto :goto_27
.end method

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

    return-void
.end method

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

    return-void
.end method

.method public b(Landroid/view/SurfaceHolder;)V
    .registers 3

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->c:Lcom/fulishe/fs/newvideo/renderview/b;

    invoke-interface {v0}, Lcom/fulishe/fs/newvideo/renderview/b;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    if-ne p1, v0, :cond_b

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->f:Z

    :cond_b
    return-void
.end method

.method public c()V
    .registers 2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->c()V

    :cond_7
    return-void
.end method

.method public d()V
    .registers 2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->e()V

    :cond_7
    return-void
.end method

.method public e()Z
    .registers 2

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_c

    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->i()Z

    move-result v0

    if-eqz v0, :cond_c

    const/4 v0, 0x1

    :goto_b
    return v0

    :cond_c
    const/4 v0, 0x0

    goto :goto_b
.end method

.method public f()I
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public g()I
    .registers 3

    iget-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->k:J

    long-to-int v0, v0

    return v0
.end method

.method public h()I
    .registers 3

    iget-wide v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->j:J

    long-to-int v0, v0

    return v0
.end method

.method public i()V
    .registers 4

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    if-eqz v0, :cond_a

    invoke-virtual {v0}, Lcom/fulishe/fs/c/b/d;->d()V

    iput-object v2, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->d:Lcom/fulishe/fs/c/b/d;

    :cond_a
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    if-eqz v0, :cond_18

    iget-object v1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->s:Ljava/lang/Runnable;

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

    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->e:Lcom/fulishe/shadow/base/i;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    :cond_18
    iget-object v0, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->g:Ljava/util/List;

    if-eqz v0, :cond_1f

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_1f
    return-void
.end method

.method public setOnCompletionListener(Lcom/fulishe/shadow/base/e$a;)V
    .registers 2

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->n:Lcom/fulishe/shadow/base/e$a;

    return-void
.end method

.method public setOnErrorListener(Lcom/fulishe/shadow/base/e$b;)V
    .registers 2

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->o:Lcom/fulishe/shadow/base/e$b;

    return-void
.end method

.method public setOnInfoListener(Lcom/fulishe/shadow/base/e$c;)V
    .registers 2

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->p:Lcom/fulishe/shadow/base/e$c;

    return-void
.end method

.method public setOnPreparedListener(Lcom/fulishe/shadow/base/e$d;)V
    .registers 2

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->m:Lcom/fulishe/shadow/base/e$d;

    return-void
.end method

.method public setVideoURI(Landroid/net/Uri;)V
    .registers 2

    iput-object p1, p0, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->q:Landroid/net/Uri;

    return-void
.end method

.method public setVolume(FF)V
    .registers 3

    invoke-direct {p0, p1, p2}, Lcom/fulishe/fs/newvideo/nativevideo/NativeVideoView;->a(FF)V

    return-void
.end method