V2TXLivePlayerJni.smali

.class public Lcom/tencent/liteav/live/V2TXLivePlayerJni;
.super Lcom/tencent/live2/V2TXLivePlayer;
.source "SourceFile"


# annotations
.annotation runtime Lcom/tencent/liteav/base/annotations/JNINamespace;
    value = "liteav"
.end annotation


# static fields
.field private static final TAG:Ljava/lang/String; = "V2TXLivePlayerJni"


# instance fields
.field private mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

.field private mClearLastImage:Z

.field private mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

.field private mEnableCustomRendering:Ljava/lang/Boolean;

.field private mEnableExtensionCallback:Ljava/lang/Boolean;

.field private mEnableObserveAudioFrame:Ljava/lang/Boolean;

.field private mGLContext:Ljava/lang/Object;

.field private mIsPauseAudio:Ljava/lang/Boolean;

.field private mIsPauseVideo:Ljava/lang/Boolean;

.field private mMax:Ljava/lang/Float;

.field private mMin:Ljava/lang/Float;

.field protected mNativeV2TXLivePlayerJni:J

.field private mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

.field private mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

.field private mPropertyMap:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

.field private mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

.field private mSEIPayloadSet:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

.field private mShowDebugView:Ljava/lang/Boolean;

.field private mVolume:Ljava/lang/Integer;

.field private mVolumeIntervalMs:Ljava/lang/Integer;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/tencent/live2/impl/V2TXLivePlayerImpl;)V
    .registers 5

    .line 74
    invoke-direct {p0}, Lcom/tencent/live2/V2TXLivePlayer;-><init>()V

    const-wide/16 v0, 0x0

    .line 47
    iput-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    const/4 v0, 0x1

    .line 51
    iput-boolean v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mClearLastImage:Z

    const/4 v0, 0x0

    .line 70
    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mGLContext:Ljava/lang/Object;

    .line 71
    new-instance v0, Ljava/util/HashSet;

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

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mSEIPayloadSet:Ljava/util/Set;

    .line 72
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPropertyMap:Ljava/util/HashMap;

    .line 76
    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    .line 77
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/tencent/liteav/base/ContextUtils;->initApplicationContext(Landroid/content/Context;)V

    const-string p1, "liteav"

    .line 78
    invoke-static {p1}, Lcom/tencent/liteav/base/ContextUtils;->setDataDirectorySuffix(Ljava/lang/String;)V

    return-void
.end method

.method private enableExtensionCallback(Z)V
    .registers 4

    .line 195
    monitor-enter p0

    .line 196
    :try_start_1
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableExtensionCallback:Ljava/lang/Boolean;

    .line 197
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_12

    .line 198
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableExtensionCallback(JZ)V

    .line 200
    :cond_12
    monitor-exit p0

    return-void

    :catchall_14
    move-exception p1

    monitor-exit p0
    :try_end_16
    .catchall {:try_start_1 .. :try_end_16} :catchall_14

    throw p1
.end method

.method public static getJavaV2TXLivePlayerStatistics(IIIIIIIIIIIIIII)Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;
    .registers 16

    .line 88
    new-instance v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;

    invoke-direct {v0}, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;-><init>()V

    .line 90
    iput p0, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->appCpu:I

    .line 91
    iput p1, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->systemCpu:I

    .line 92
    iput p2, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->rtt:I

    .line 93
    iput p3, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->width:I

    .line 94
    iput p4, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->height:I

    .line 95
    iput p5, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->fps:I

    .line 96
    iput p6, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->videoBitrate:I

    .line 97
    iput p7, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->audioBitrate:I

    .line 98
    iput p8, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->audioPacketLoss:I

    .line 99
    iput p9, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->videoPacketLoss:I

    .line 100
    iput p10, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->jitterBufferDelay:I

    .line 101
    iput p11, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->audioTotalBlockTime:I

    .line 102
    iput p12, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->audioBlockRate:I

    .line 103
    iput p13, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->videoTotalBlockTime:I

    .line 104
    iput p14, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;->videoBlockRate:I

    return-object v0
.end method

.method private static getStreamListFormJsonString(Ljava/lang/String;)Ljava/util/ArrayList;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Lcom/tencent/live2/V2TXLiveDef$V2TXLiveStreamInfo;",
            ">;"
        }
    .end annotation

    .line 109
    new-instance v0, Ljava/util/ArrayList;

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

    if-eqz p0, :cond_40

    .line 110
    invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_e

    goto :goto_40

    .line 114
    :cond_e
    :try_start_e
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1, p0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    const/4 p0, 0x0

    .line 115
    :goto_14
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge p0, v2, :cond_40

    .line 116
    invoke-virtual {v1, p0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 117
    new-instance v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveStreamInfo;

    const-string/jumbo v4, "width"

    .line 118
    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v4

    const-string v5, "height"

    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v5

    const-string v6, "url"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v3, v4, v5, v2}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveStreamInfo;-><init>(IILjava/lang/String;)V

    .line 117
    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_39
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_39} :catch_3c

    add-int/lit8 p0, p0, 0x1

    goto :goto_14

    :catch_3c
    move-exception p0

    .line 121
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_40
    :goto_40
    return-object v0
.end method

.method private isNativeValid()Z
    .registers 5

    .line 191
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_a

    const/4 v0, 0x1

    return v0

    :cond_a
    const/4 v0, 0x0

    return v0
.end method

.method private static native nativeCreate(Ljava/lang/ref/WeakReference;)J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/ref/WeakReference<",
            "Lcom/tencent/liteav/live/V2TXLivePlayerJni;",
            ">;)J"
        }
    .end annotation
.end method

.method private static native nativeDestroy(J)V
.end method

.method private static native nativeEnableCustomRendering(JZII)I
.end method

.method private static native nativeEnableExtensionCallback(JZ)V
.end method

.method private static native nativeEnableObserveAudioFrame(JZ)I
.end method

.method private static native nativeEnableReceiveSeiMessage(JZI)I
.end method

.method private static native nativeEnableVolumeEvaluation(JI)I
.end method

.method private static native nativeGetStreamList(J)Ljava/lang/String;
.end method

.method private static native nativeIsPlaying(J)I
.end method

.method private static native nativePauseAudio(J)I
.end method

.method private static native nativePauseVideo(J)I
.end method

.method private static native nativeResumeAudio(J)I
.end method

.method private static native nativeResumeVideo(J)I
.end method

.method private static native nativeSetCacheParams(JFF)I
.end method

.method private static native nativeSetPlayoutVolume(JI)I
.end method

.method private static native nativeSetProperty(JLjava/lang/String;Ljava/lang/Object;)I
.end method

.method private static native nativeSetRenderFillMode(JI)I
.end method

.method private static native nativeSetRenderRotation(JI)I
.end method

.method private static native nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I
.end method

.method private static native nativeSetSharedEGLContext(JLjava/lang/Object;)V
.end method

.method private static native nativeShowDebugView(JZ)V
.end method

.method private static native nativeSnapshot(J)I
.end method

.method private static native nativeStartPlay(JLjava/lang/String;)I
.end method

.method private static native nativeStopPlay(JZ)I
.end method

.method private static native nativeSwitchStream(JLjava/lang/String;)I
.end method

.method public static weakToStrongReference(Ljava/lang/ref/WeakReference;)Lcom/tencent/liteav/live/V2TXLivePlayerJni;
    .registers 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/ref/WeakReference<",
            "Lcom/tencent/liteav/live/V2TXLivePlayerJni;",
            ">;)",
            "Lcom/tencent/liteav/live/V2TXLivePlayerJni;"
        }
    .end annotation

    .line 187
    invoke-virtual {p0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;

    return-object p0
.end method


# virtual methods
.method public enableObserveAudioFrame(Z)I
    .registers 4

    .line 538
    monitor-enter p0

    .line 539
    :try_start_1
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableObserveAudioFrame:Ljava/lang/Boolean;

    .line 540
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_15

    .line 541
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableObserveAudioFrame(JZ)I

    move-result p1

    monitor-exit p0

    return p1

    .line 543
    :cond_15
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_18
    move-exception p1

    monitor-exit p0
    :try_end_1a
    .catchall {:try_start_1 .. :try_end_1a} :catchall_18

    throw p1
.end method

.method public enableObserveVideoFrame(ZLcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;)I
    .registers 6

    .line 508
    monitor-enter p0

    .line 509
    :try_start_1
    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;->V2TXLivePixelFormatI420:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    if-ne p2, v0, :cond_12

    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeByteArray:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    if-ne p3, v0, :cond_12

    .line 511
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->a:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    .line 512
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->d:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    goto :goto_33

    .line 513
    :cond_12
    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;->V2TXLivePixelFormatTexture2D:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    if-ne p2, v0, :cond_23

    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeTexture:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    if-ne p3, v0, :cond_23

    .line 515
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->f:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    .line 516
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->b:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    goto :goto_33

    .line 517
    :cond_23
    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;->V2TXLivePixelFormatI420:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    if-ne p2, v0, :cond_56

    sget-object v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeByteBuffer:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    if-ne p3, v0, :cond_56

    .line 519
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->a:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    .line 520
    sget-object p2, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->a:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    .line 527
    :goto_33
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p2

    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableCustomRendering:Ljava/lang/Boolean;

    .line 528
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p2

    if-eqz p2, :cond_53

    .line 529
    iget-wide p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    .line 530
    invoke-virtual {v0}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->getValue()I

    move-result v0

    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    invoke-virtual {v1}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->ordinal()I

    move-result v1

    .line 529
    invoke-static {p2, p3, p1, v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableCustomRendering(JZII)I

    move-result p1

    monitor-exit p0

    return p1

    .line 532
    :cond_53
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :cond_56
    const-string p1, "V2TXLivePlayerJni"

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

    const-string v1, "Enable custom render failed, invalid params. format:"

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

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

    const-string p2, " type:"

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

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

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

    move-result-object p2

    invoke-static {p1, p2}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, -0x4

    .line 525
    monitor-exit p0

    return p1

    :catchall_74
    move-exception p1

    .line 532
    monitor-exit p0
    :try_end_76
    .catchall {:try_start_1 .. :try_end_76} :catchall_74

    throw p1
.end method

.method public enableReceiveSeiMessage(ZI)I
    .registers 5

    .line 549
    monitor-enter p0

    if-eqz p1, :cond_d

    .line 551
    :try_start_3
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mSEIPayloadSet:Ljava/util/Set;

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

    move-result-object v1

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

    goto :goto_16

    .line 553
    :cond_d
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mSEIPayloadSet:Ljava/util/Set;

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

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 555
    :goto_16
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_24

    .line 556
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableReceiveSeiMessage(JZI)I

    move-result p1

    monitor-exit p0

    return p1

    .line 558
    :cond_24
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_27
    move-exception p1

    monitor-exit p0
    :try_end_29
    .catchall {:try_start_3 .. :try_end_29} :catchall_27

    throw p1
.end method

.method public enableVolumeEvaluation(I)I
    .registers 4

    .line 486
    monitor-enter p0

    .line 487
    :try_start_1
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mVolumeIntervalMs:Ljava/lang/Integer;

    .line 488
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_15

    .line 489
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableVolumeEvaluation(JI)I

    move-result p1

    monitor-exit p0

    return p1

    .line 491
    :cond_15
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_18
    move-exception p1

    monitor-exit p0
    :try_end_1a
    .catchall {:try_start_1 .. :try_end_1a} :catchall_18

    throw p1
.end method

.method public getStreamList()Ljava/util/ArrayList;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Lcom/tencent/live2/V2TXLiveDef$V2TXLiveStreamInfo;",
            ">;"
        }
    .end annotation

    .line 476
    monitor-enter p0

    .line 477
    :try_start_1
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_13

    .line 478
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeGetStreamList(J)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->getStreamListFormJsonString(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    monitor-exit p0

    return-object v0

    .line 480
    :cond_13
    monitor-exit p0
    :try_end_14
    .catchall {:try_start_1 .. :try_end_14} :catchall_1a

    .line 481
    new-instance v0, Ljava/util/ArrayList;

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

    return-object v0

    :catchall_1a
    move-exception v0

    .line 480
    :try_start_1b
    monitor-exit p0
    :try_end_1c
    .catchall {:try_start_1b .. :try_end_1c} :catchall_1a

    throw v0
.end method

.method public isPlaying()I
    .registers 3

    .line 382
    monitor-enter p0

    .line 383
    :try_start_1
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 384
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeIsPlaying(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 386
    :cond_f
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_12
    move-exception v0

    monitor-exit p0
    :try_end_14
    .catchall {:try_start_1 .. :try_end_14} :catchall_12

    throw v0
.end method

.method public onAudioLoading(Landroid/os/Bundle;)V
    .registers 4

    .line 711
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 713
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onAudioLoading(Lcom/tencent/live2/V2TXLivePlayer;Landroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onAudioPlaying(ZLandroid/os/Bundle;)V
    .registers 5

    .line 695
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 697
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onAudioPlaying(Lcom/tencent/live2/V2TXLivePlayer;ZLandroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onConnected(Landroid/os/Bundle;)V
    .registers 4

    .line 679
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 681
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onConnected(Lcom/tencent/live2/V2TXLivePlayer;Landroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onError(ILjava/lang/String;Landroid/os/Bundle;)V
    .registers 6

    .line 655
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 657
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2, p3}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onError(Lcom/tencent/live2/V2TXLivePlayer;ILjava/lang/String;Landroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onNetworkQuality(I)V
    .registers 2

    return-void
.end method

.method public onPlayEvent(ILandroid/os/Bundle;)V
    .registers 3

    return-void
.end method

.method public onPlayNetStatus(Landroid/os/Bundle;)V
    .registers 2

    return-void
.end method

.method public onPlayoutAudioFrame([BII)V
    .registers 5

    .line 833
    new-instance v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;

    invoke-direct {v0}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;-><init>()V

    .line 834
    iput-object p1, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;->data:[B

    .line 835
    iput p2, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;->sampleRate:I

    .line 836
    iput p3, v0, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;->channel:I

    .line 837
    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz p1, :cond_14

    .line 839
    iget-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {p1, p2, v0}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onPlayoutAudioFrame(Lcom/tencent/live2/V2TXLivePlayer;Lcom/tencent/live2/V2TXLiveDef$V2TXLiveAudioFrame;)V

    :cond_14
    return-void
.end method

.method public onPlayoutVolumeUpdate(I)V
    .registers 4

    .line 719
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 721
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onPlayoutVolumeUpdate(Lcom/tencent/live2/V2TXLivePlayer;I)V

    :cond_9
    return-void
.end method

.method public onReceiveSeiMessage(I[B)V
    .registers 5

    .line 845
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 847
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onReceiveSeiMessage(Lcom/tencent/live2/V2TXLivePlayer;I[B)V

    :cond_9
    return-void
.end method

.method public onRenderVideoFrame(IILjava/lang/Object;IIIIJ[BLjava/nio/ByteBuffer;)V
    .registers 23

    move-object v0, p0

    move-object v1, p3

    .line 758
    new-instance v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;

    invoke-direct {v2}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;-><init>()V

    .line 759
    invoke-static {p1}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->a(I)Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    move-result-object v3

    .line 760
    sget-object v4, Lcom/tencent/liteav/live/V2TXLivePlayerJni$1;->c:[I

    invoke-virtual {v3}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->ordinal()I

    move-result v5

    aget v4, v4, v5

    const-string v5, "."

    const-string v6, "V2TXLivePlayerJni"

    const/4 v7, 0x2

    const/4 v8, 0x1

    if-eq v4, v8, :cond_37

    if-eq v4, v7, :cond_32

    .line 769
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v9, "Invalid pixelFormat. pixelFormat:"

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

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

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

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

    move-result-object v3

    invoke-static {v6, v3}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_3b

    .line 765
    :cond_32
    sget-object v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;->V2TXLivePixelFormatTexture2D:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->pixelFormat:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    goto :goto_3b

    .line 762
    :cond_37
    sget-object v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;->V2TXLivePixelFormatI420:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->pixelFormat:Lcom/tencent/live2/V2TXLiveDef$V2TXLivePixelFormat;

    .line 775
    :goto_3b
    invoke-static {p2}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->a(I)Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    move-result-object v3

    .line 776
    sget-object v4, Lcom/tencent/liteav/live/V2TXLivePlayerJni$1;->d:[I

    invoke-virtual {v3}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->ordinal()I

    move-result v9

    aget v4, v4, v9

    const/4 v9, 0x3

    if-eq v4, v8, :cond_6d

    if-eq v4, v7, :cond_68

    if-eq v4, v9, :cond_63

    .line 787
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v10, "Invalid bufferType. bufferType:"

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

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

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

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

    move-result-object v3

    invoke-static {v6, v3}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_71

    .line 784
    :cond_63
    sget-object v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeTexture:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->bufferType:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    goto :goto_71

    .line 781
    :cond_68
    sget-object v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeByteArray:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->bufferType:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    goto :goto_71

    .line 778
    :cond_6d
    sget-object v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;->V2TXLiveBufferTypeByteBuffer:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->bufferType:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveBufferType;

    .line 792
    :goto_71
    new-instance v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;

    invoke-direct {v3}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;-><init>()V

    move v4, p4

    .line 793
    iput v4, v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;->textureId:I

    .line 794
    instance-of v4, v1, Ljavax/microedition/khronos/egl/EGLContext;

    if-eqz v4, :cond_82

    .line 795
    check-cast v1, Ljavax/microedition/khronos/egl/EGLContext;

    iput-object v1, v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;->eglContext10:Ljavax/microedition/khronos/egl/EGLContext;

    goto :goto_90

    .line 796
    :cond_82
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0x11

    if-lt v4, v5, :cond_90

    instance-of v4, v1, Landroid/opengl/EGLContext;

    if-eqz v4, :cond_90

    .line 798
    check-cast v1, Landroid/opengl/EGLContext;

    iput-object v1, v3, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;->eglContext14:Landroid/opengl/EGLContext;

    .line 800
    :cond_90
    :goto_90
    iput-object v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->texture:Lcom/tencent/live2/V2TXLiveDef$V2TXLiveTexture;

    move-object/from16 v1, p10

    .line 802
    iput-object v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->data:[B

    move-object/from16 v1, p11

    .line 803
    iput-object v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->buffer:Ljava/nio/ByteBuffer;

    move/from16 v1, p5

    .line 804
    iput v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->width:I

    move/from16 v1, p6

    .line 805
    iput v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->height:I

    .line 806
    invoke-static/range {p7 .. p7}, Lcom/tencent/liteav/videobase/utils/Rotation;->a(I)Lcom/tencent/liteav/videobase/utils/Rotation;

    move-result-object v1

    .line 807
    sget-object v3, Lcom/tencent/liteav/live/V2TXLivePlayerJni$1;->e:[I

    invoke-virtual {v1}, Lcom/tencent/liteav/videobase/utils/Rotation;->ordinal()I

    move-result v1

    aget v1, v3, v1

    const/4 v3, 0x0

    if-eq v1, v8, :cond_ca

    if-eq v1, v7, :cond_c5

    if-eq v1, v9, :cond_c0

    const/4 v4, 0x4

    if-eq v1, v4, :cond_bb

    .line 821
    iput v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->rotation:I

    goto :goto_cc

    :cond_bb
    const/16 v1, 0x10e

    .line 818
    iput v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->rotation:I

    goto :goto_cc

    :cond_c0
    const/16 v1, 0xb4

    .line 815
    iput v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->rotation:I

    goto :goto_cc

    :cond_c5
    const/16 v1, 0x5a

    .line 812
    iput v1, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->rotation:I

    goto :goto_cc

    .line 809
    :cond_ca
    iput v3, v2, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;->rotation:I

    .line 825
    :goto_cc
    iget-object v1, v0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v1, :cond_d5

    .line 827
    iget-object v3, v0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v1, v3, v2}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onRenderVideoFrame(Lcom/tencent/live2/V2TXLivePlayer;Lcom/tencent/live2/V2TXLiveDef$V2TXLiveVideoFrame;)V

    :cond_d5
    return-void
.end method

.method public onSnapshotComplete(Landroid/graphics/Bitmap;)V
    .registers 4

    .line 735
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 737
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onSnapshotComplete(Lcom/tencent/live2/V2TXLivePlayer;Landroid/graphics/Bitmap;)V

    :cond_9
    return-void
.end method

.method public onStatisticsUpdate(Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;)V
    .registers 4

    .line 727
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 729
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onStatisticsUpdate(Lcom/tencent/live2/V2TXLivePlayer;Lcom/tencent/live2/V2TXLiveDef$V2TXLivePlayerStatistics;)V

    :cond_9
    return-void
.end method

.method public onStreamSwitched(ILjava/lang/String;)V
    .registers 5

    .line 853
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 855
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p2, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onStreamSwitched(Lcom/tencent/live2/V2TXLivePlayer;Ljava/lang/String;I)V

    :cond_9
    return-void
.end method

.method public onVideoLoading(Landroid/os/Bundle;)V
    .registers 4

    .line 703
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 705
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onVideoLoading(Lcom/tencent/live2/V2TXLivePlayer;Landroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onVideoPlaying(ZLandroid/os/Bundle;)V
    .registers 5

    .line 687
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 689
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onVideoPlaying(Lcom/tencent/live2/V2TXLivePlayer;ZLandroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public onVideoResolutionChanged(II)V
    .registers 5

    .line 671
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 673
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onVideoResolutionChanged(Lcom/tencent/live2/V2TXLivePlayer;II)V

    :cond_9
    return-void
.end method

.method public onWarning(ILjava/lang/String;Landroid/os/Bundle;)V
    .registers 6

    .line 663
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz v0, :cond_9

    .line 665
    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mProxy:Lcom/tencent/live2/impl/V2TXLivePlayerImpl;

    invoke-virtual {v0, v1, p1, p2, p3}, Lcom/tencent/live2/V2TXLivePlayerObserver;->onWarning(Lcom/tencent/live2/V2TXLivePlayer;ILjava/lang/String;Landroid/os/Bundle;)V

    :cond_9
    return-void
.end method

.method public pauseAudio()I
    .registers 3

    .line 392
    monitor-enter p0

    .line 393
    :try_start_1
    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseAudio:Ljava/lang/Boolean;

    .line 394
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_13

    .line 395
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativePauseAudio(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 397
    :cond_13
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_16
    move-exception v0

    monitor-exit p0
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_16

    throw v0
.end method

.method public pauseVideo()I
    .registers 3

    .line 414
    monitor-enter p0

    .line 415
    :try_start_1
    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseVideo:Ljava/lang/Boolean;

    .line 416
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_13

    .line 417
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativePauseVideo(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 419
    :cond_13
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_16
    move-exception v0

    monitor-exit p0
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_16

    throw v0
.end method

.method public resumeAudio()I
    .registers 3

    .line 403
    monitor-enter p0

    .line 404
    :try_start_1
    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseAudio:Ljava/lang/Boolean;

    .line 405
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_13

    .line 406
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeResumeAudio(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 408
    :cond_13
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_16
    move-exception v0

    monitor-exit p0
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_16

    throw v0
.end method

.method public resumeVideo()I
    .registers 3

    .line 425
    monitor-enter p0

    .line 426
    :try_start_1
    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseVideo:Ljava/lang/Boolean;

    .line 427
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_13

    .line 428
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeResumeVideo(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 430
    :cond_13
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_16
    move-exception v0

    monitor-exit p0
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_16

    throw v0
.end method

.method public setCacheParams(FF)I
    .registers 5

    .line 447
    monitor-enter p0

    const/4 v0, 0x0

    cmpg-float v1, p1, v0

    if-ltz v1, :cond_28

    cmpg-float v0, p2, v0

    if-gez v0, :cond_b

    goto :goto_28

    .line 451
    :cond_b
    :try_start_b
    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mMin:Ljava/lang/Float;

    .line 452
    invoke-static {p2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mMax:Ljava/lang/Float;

    .line 453
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_25

    .line 454
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetCacheParams(JFF)I

    move-result p1

    monitor-exit p0

    return p1

    .line 456
    :cond_25
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :cond_28
    :goto_28
    const/4 p1, -0x2

    .line 449
    monitor-exit p0

    return p1

    :catchall_2b
    move-exception p1

    .line 456
    monitor-exit p0
    :try_end_2d
    .catchall {:try_start_b .. :try_end_2d} :catchall_2b

    throw p1
.end method

.method public setObserver(Lcom/tencent/live2/V2TXLivePlayerObserver;)V
    .registers 2

    .line 205
    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mObserver:Lcom/tencent/live2/V2TXLivePlayerObserver;

    if-eqz p1, :cond_c

    .line 206
    instance-of p1, p1, Lcom/tencent/live2/impl/a/a;

    if-eqz p1, :cond_c

    const/4 p1, 0x1

    .line 207
    invoke-direct {p0, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->enableExtensionCallback(Z)V

    :cond_c
    return-void
.end method

.method public setPlayoutVolume(I)I
    .registers 4

    .line 436
    monitor-enter p0

    .line 437
    :try_start_1
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mVolume:Ljava/lang/Integer;

    .line 438
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_15

    .line 439
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetPlayoutVolume(JI)I

    move-result p1

    monitor-exit p0

    return p1

    .line 441
    :cond_15
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_18
    move-exception p1

    monitor-exit p0
    :try_end_1a
    .catchall {:try_start_1 .. :try_end_1a} :catchall_18

    throw p1
.end method

.method public setProperty(Ljava/lang/String;Ljava/lang/Object;)I
    .registers 7

    .line 575
    monitor-enter p0

    const/4 v0, -0x1

    .line 576
    :try_start_2
    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v1

    const/4 v2, 0x0

    sparse-switch v1, :sswitch_data_1b2

    goto/16 :goto_ad

    :sswitch_c
    const-string v1, "setFramework"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x4

    goto/16 :goto_ad

    :sswitch_17
    const-string v1, "setAudioRoute"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x7

    goto/16 :goto_ad

    :sswitch_22
    const-string v1, "secondsBetweenReconnection"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x2

    goto/16 :goto_ad

    :sswitch_2d
    const-string v1, "enableRTMPAcc"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x6

    goto/16 :goto_ad

    :sswitch_38
    const-string v1, "maxNumberOfReconnection"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x1

    goto/16 :goto_ad

    :sswitch_43
    const-string v1, "setOpenGLContext"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0xe

    goto :goto_ad

    :sswitch_4e
    const-string v1, "setSurface"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0xc

    goto :goto_ad

    :sswitch_59
    const-string v1, "clearLastImage"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0xb

    goto :goto_ad

    :sswitch_64
    const-string v1, "setSurfaceSize"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0xd

    goto :goto_ad

    :sswitch_6f
    const-string v1, "setHeaders"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x3

    goto :goto_ad

    :sswitch_79
    const-string v1, "enableHardwareAcceleration"

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

    move-result v1

    if-eqz v1, :cond_ad

    move v0, v2

    goto :goto_ad

    :sswitch_83
    const-string v1, "setPreferLocalIPStack"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0x8

    goto :goto_ad

    :sswitch_8e
    const-string v1, "setLEBEnvironment"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/4 v0, 0x5

    goto :goto_ad

    :sswitch_98
    const-string v1, "setLebCacheParams"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0x9

    goto :goto_ad

    :sswitch_a3
    const-string v1, "setAudioCodecType"

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

    move-result v1

    if-eqz v1, :cond_ad

    const/16 v0, 0xa

    :cond_ad
    :goto_ad
    const/4 v1, -0x2

    packed-switch v0, :pswitch_data_1f0

    const-string v0, "V2TXLivePlayerJni"

    goto/16 :goto_193

    .line 632
    :pswitch_b5
    instance-of v0, p2, Ljavax/microedition/khronos/egl/EGLContext;

    if-nez v0, :cond_da

    instance-of v0, p2, Landroid/opengl/EGLContext;

    if-nez v0, :cond_da

    const-string v0, "V2TXLivePlayerJni"

    .line 634
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "setProperty error, key:"

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

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

    const-string p1, ", value:"

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 635
    monitor-exit p0

    return v1

    .line 638
    :cond_da
    monitor-enter p0
    :try_end_db
    .catchall {:try_start_2 .. :try_end_db} :catchall_1af

    .line 639
    :try_start_db
    iput-object p2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mGLContext:Ljava/lang/Object;

    .line 640
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_ea

    .line 641
    iget-wide p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mGLContext:Ljava/lang/Object;

    invoke-static {p1, p2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetSharedEGLContext(JLjava/lang/Object;)V

    .line 643
    :cond_ea
    monitor-exit p0

    goto/16 :goto_18e

    :catchall_ed
    move-exception p1

    monitor-exit p0
    :try_end_ef
    .catchall {:try_start_db .. :try_end_ef} :catchall_ed

    :try_start_ef
    throw p1

    :pswitch_f0
    const-string p1, "V2TXLivePlayerJni"

    const-string p2, "set surface size is unnecessary"

    .line 629
    invoke-static {p1, p2}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_18e

    :pswitch_f9
    if-nez p2, :cond_110

    .line 606
    monitor-enter p0
    :try_end_fc
    .catchall {:try_start_ef .. :try_end_fc} :catchall_1af

    const/4 p1, 0x0

    .line 607
    :try_start_fd
    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    .line 608
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p2

    if-eqz p2, :cond_10a

    .line 609
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    .line 611
    :cond_10a
    monitor-exit p0
    :try_end_10b
    .catchall {:try_start_fd .. :try_end_10b} :catchall_10d

    .line 612
    :try_start_10b
    monitor-exit p0
    :try_end_10c
    .catchall {:try_start_10b .. :try_end_10c} :catchall_1af

    return v2

    :catchall_10d
    move-exception p1

    .line 611
    :try_start_10e
    monitor-exit p0
    :try_end_10f
    .catchall {:try_start_10e .. :try_end_10f} :catchall_10d

    :try_start_10f
    throw p1

    .line 615
    :cond_110
    instance-of v0, p2, Landroid/view/Surface;

    if-nez v0, :cond_131

    const-string v0, "V2TXLivePlayerJni"

    .line 616
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "setProperty error, key:"

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

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

    const-string p1, ", value:"

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 617
    monitor-exit p0

    return v1

    .line 620
    :cond_131
    monitor-enter p0
    :try_end_132
    .catchall {:try_start_10f .. :try_end_132} :catchall_1af

    .line 621
    :try_start_132
    check-cast p2, Landroid/view/Surface;

    .line 622
    new-instance p1, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-direct {p1, p2}, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;-><init>(Landroid/view/Surface;)V

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    .line 623
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_148

    .line 624
    iget-wide p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-static {p1, p2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    .line 626
    :cond_148
    monitor-exit p0

    goto :goto_18e

    :catchall_14a
    move-exception p1

    monitor-exit p0
    :try_end_14c
    .catchall {:try_start_132 .. :try_end_14c} :catchall_14a

    :try_start_14c
    throw p1

    .line 596
    :pswitch_14d
    instance-of v0, p2, Ljava/lang/Boolean;

    if-nez v0, :cond_16e

    const-string v0, "V2TXLivePlayerJni"

    .line 597
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "setProperty error, key:"

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

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

    const-string p1, ", value:"

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 598
    monitor-exit p0

    return v1

    .line 600
    :cond_16e
    monitor-enter p0
    :try_end_16f
    .catchall {:try_start_14c .. :try_end_16f} :catchall_1af

    .line 601
    :try_start_16f
    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    iput-boolean p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mClearLastImage:Z

    .line 602
    monitor-exit p0

    goto :goto_18e

    :catchall_179
    move-exception p1

    monitor-exit p0
    :try_end_17b
    .catchall {:try_start_16f .. :try_end_17b} :catchall_179

    :try_start_17b
    throw p1

    .line 588
    :pswitch_17c
    monitor-enter p0
    :try_end_17d
    .catchall {:try_start_17b .. :try_end_17d} :catchall_1af

    .line 589
    :try_start_17d
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPropertyMap:Ljava/util/HashMap;

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

    .line 590
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_18d

    .line 591
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetProperty(JLjava/lang/String;Ljava/lang/Object;)I

    .line 593
    :cond_18d
    monitor-exit p0
    :try_end_18e
    .catchall {:try_start_17d .. :try_end_18e} :catchall_190

    .line 649
    :goto_18e
    :try_start_18e
    monitor-exit p0
    :try_end_18f
    .catchall {:try_start_18e .. :try_end_18f} :catchall_1af

    return v2

    :catchall_190
    move-exception p1

    .line 593
    :try_start_191
    monitor-exit p0
    :try_end_192
    .catchall {:try_start_191 .. :try_end_192} :catchall_190

    :try_start_192
    throw p1

    .line 646
    :goto_193
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "setProperty error, key:"

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

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

    const-string p1, ", value:"

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, -0x4

    .line 647
    monitor-exit p0

    return p1

    :catchall_1af
    move-exception p1

    .line 649
    monitor-exit p0
    :try_end_1b1
    .catchall {:try_start_192 .. :try_end_1b1} :catchall_1af

    throw p1

    :sswitch_data_1b2
    .sparse-switch
        -0x7f0d3dc4 -> :sswitch_a3
        -0x75a8c91f -> :sswitch_98
        -0x5c787eb4 -> :sswitch_8e
        -0x570141f8 -> :sswitch_83
        -0x2e819355 -> :sswitch_79
        -0x1f5a073c -> :sswitch_6f
        0x1c9cdc8c -> :sswitch_64
        0x22b78498 -> :sswitch_59
        0x42c875eb -> :sswitch_4e
        0x604b58be -> :sswitch_43
        0x619cf3f5 -> :sswitch_38
        0x64f9aff9 -> :sswitch_2d
        0x713a347a -> :sswitch_22
        0x78052215 -> :sswitch_17
        0x7c4f23bc -> :sswitch_c
    .end sparse-switch

    :pswitch_data_1f0
    .packed-switch 0x0
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_17c
        :pswitch_14d
        :pswitch_f9
        :pswitch_f0
        :pswitch_b5
    .end packed-switch
.end method

.method public setRenderFillMode(Lcom/tencent/live2/V2TXLiveDef$V2TXLiveFillMode;)I
    .registers 4

    .line 282
    monitor-enter p0

    .line 283
    :try_start_1
    sget-object v0, Lcom/tencent/liteav/live/V2TXLivePlayerJni$1;->b:[I

    invoke-virtual {p1}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveFillMode;->ordinal()I

    move-result p1

    aget p1, v0, p1

    const/4 v0, 0x1

    if-eq p1, v0, :cond_19

    const/4 v0, 0x2

    if-eq p1, v0, :cond_14

    .line 291
    sget-object p1, Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;->b:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    goto :goto_1d

    .line 288
    :cond_14
    sget-object p1, Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;->c:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    goto :goto_1d

    .line 285
    :cond_19
    sget-object p1, Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;->a:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    .line 294
    :goto_1d
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_2f

    .line 295
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    .line 1093
    iget p1, p1, Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;->mValue:I

    .line 295
    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderFillMode(JI)I

    move-result p1

    monitor-exit p0

    return p1

    .line 297
    :cond_2f
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_32
    move-exception p1

    monitor-exit p0
    :try_end_34
    .catchall {:try_start_1 .. :try_end_34} :catchall_32

    throw p1
.end method

.method public setRenderRotation(Lcom/tencent/live2/V2TXLiveDef$V2TXLiveRotation;)I
    .registers 4

    .line 258
    monitor-enter p0

    .line 259
    :try_start_1
    sget-object v0, Lcom/tencent/liteav/live/V2TXLivePlayerJni$1;->a:[I

    invoke-virtual {p1}, Lcom/tencent/live2/V2TXLiveDef$V2TXLiveRotation;->ordinal()I

    move-result p1

    aget p1, v0, p1

    const/4 v0, 0x1

    if-eq p1, v0, :cond_21

    const/4 v0, 0x2

    if-eq p1, v0, :cond_1c

    const/4 v0, 0x3

    if-eq p1, v0, :cond_17

    .line 270
    sget-object p1, Lcom/tencent/liteav/videobase/utils/Rotation;->a:Lcom/tencent/liteav/videobase/utils/Rotation;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    goto :goto_25

    .line 267
    :cond_17
    sget-object p1, Lcom/tencent/liteav/videobase/utils/Rotation;->d:Lcom/tencent/liteav/videobase/utils/Rotation;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    goto :goto_25

    .line 264
    :cond_1c
    sget-object p1, Lcom/tencent/liteav/videobase/utils/Rotation;->c:Lcom/tencent/liteav/videobase/utils/Rotation;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    goto :goto_25

    .line 261
    :cond_21
    sget-object p1, Lcom/tencent/liteav/videobase/utils/Rotation;->b:Lcom/tencent/liteav/videobase/utils/Rotation;

    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    .line 273
    :goto_25
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_37

    .line 274
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    .line 1045
    iget p1, p1, Lcom/tencent/liteav/videobase/utils/Rotation;->mValue:I

    .line 274
    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderRotation(JI)I

    move-result p1

    monitor-exit p0

    return p1

    .line 276
    :cond_37
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_3a
    move-exception p1

    monitor-exit p0
    :try_end_3c
    .catchall {:try_start_1 .. :try_end_3c} :catchall_3a

    throw p1
.end method

.method public setRenderView(Landroid/view/SurfaceView;)I
    .registers 4

    .line 243
    monitor-enter p0

    if-eqz p1, :cond_b

    .line 245
    :try_start_3
    new-instance v0, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-direct {v0, p1}, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;-><init>(Landroid/view/SurfaceView;)V

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    goto :goto_e

    :cond_b
    const/4 p1, 0x0

    .line 247
    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    .line 249
    :goto_e
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_1e

    .line 250
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    move-result p1

    monitor-exit p0

    return p1

    .line 252
    :cond_1e
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_21
    move-exception p1

    monitor-exit p0
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw p1
.end method

.method public setRenderView(Landroid/view/TextureView;)I
    .registers 4

    .line 228
    monitor-enter p0

    if-eqz p1, :cond_b

    .line 230
    :try_start_3
    new-instance v0, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-direct {v0, p1}, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;-><init>(Landroid/view/TextureView;)V

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    goto :goto_e

    :cond_b
    const/4 p1, 0x0

    .line 232
    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    .line 234
    :goto_e
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_1e

    .line 235
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    move-result p1

    monitor-exit p0

    return p1

    .line 237
    :cond_1e
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_21
    move-exception p1

    monitor-exit p0
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw p1
.end method

.method public setRenderView(Lcom/tencent/rtmp/ui/TXCloudVideoView;)I
    .registers 4

    .line 213
    monitor-enter p0

    if-eqz p1, :cond_b

    .line 215
    :try_start_3
    new-instance v0, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-direct {v0, p1}, Lcom/tencent/liteav/videobase/videobase/DisplayTarget;-><init>(Lcom/tencent/rtmp/ui/TXCloudVideoView;)V

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    goto :goto_e

    :cond_b
    const/4 p1, 0x0

    .line 217
    iput-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    .line 219
    :goto_e
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result p1

    if-eqz p1, :cond_1e

    .line 220
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object p1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    move-result p1

    monitor-exit p0

    return p1

    .line 222
    :cond_1e
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_21
    move-exception p1

    monitor-exit p0
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw p1
.end method

.method public showDebugView(Z)V
    .registers 4

    .line 564
    monitor-enter p0

    .line 565
    :try_start_1
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mShowDebugView:Ljava/lang/Boolean;

    .line 566
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_12

    .line 567
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeShowDebugView(JZ)V

    .line 569
    :cond_12
    monitor-exit p0

    return-void

    :catchall_14
    move-exception p1

    monitor-exit p0
    :try_end_16
    .catchall {:try_start_1 .. :try_end_16} :catchall_14

    throw p1
.end method

.method public snapshot()I
    .registers 3

    .line 497
    monitor-enter p0

    .line 498
    :try_start_1
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 499
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSnapshot(J)I

    move-result v0

    monitor-exit p0

    return v0

    .line 501
    :cond_f
    monitor-exit p0

    const/4 v0, -0x3

    return v0

    :catchall_12
    move-exception v0

    monitor-exit p0
    :try_end_14
    .catchall {:try_start_1 .. :try_end_14} :catchall_12

    throw v0
.end method

.method public startLivePlay(Ljava/lang/String;)I
    .registers 7

    .line 303
    monitor-enter p0

    .line 304
    :try_start_1
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-nez v0, :cond_122

    .line 305
    new-instance v0, Ljava/lang/ref/WeakReference;

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

    invoke-static {v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeCreate(Ljava/lang/ref/WeakReference;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    .line 307
    iget-object v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mShowDebugView:Ljava/lang/Boolean;

    if-eqz v2, :cond_1d

    .line 308
    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    invoke-static {v0, v1, v2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeShowDebugView(JZ)V

    .line 310
    :cond_1d
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableExtensionCallback:Ljava/lang/Boolean;

    if-eqz v0, :cond_2a

    .line 311
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    .line 312
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    .line 311
    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableExtensionCallback(JZ)V

    .line 314
    :cond_2a
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mDisplayTarget:Lcom/tencent/liteav/videobase/videobase/DisplayTarget;

    invoke-static {v0, v1, v2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderView(JLcom/tencent/liteav/videobase/videobase/DisplayTarget;)I

    .line 315
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mRotation:Lcom/tencent/liteav/videobase/utils/Rotation;

    if-eqz v0, :cond_3c

    .line 316
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    .line 2045
    iget v0, v0, Lcom/tencent/liteav/videobase/utils/Rotation;->mValue:I

    .line 316
    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderRotation(JI)I

    .line 318
    :cond_3c
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mScaleType:Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;

    if-eqz v0, :cond_47

    .line 319
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    .line 2093
    iget v0, v0, Lcom/tencent/liteav/videobase/base/GLConstants$GLScaleType;->mValue:I

    .line 319
    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetRenderFillMode(JI)I

    .line 321
    :cond_47
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseAudio:Ljava/lang/Boolean;

    if-eqz v0, :cond_5c

    .line 322
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_57

    .line 323
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativePauseAudio(J)I

    goto :goto_5c

    .line 325
    :cond_57
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeResumeAudio(J)I

    .line 328
    :cond_5c
    :goto_5c
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mIsPauseVideo:Ljava/lang/Boolean;

    if-eqz v0, :cond_71

    .line 329
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_6c

    .line 330
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativePauseVideo(J)I

    goto :goto_71

    .line 332
    :cond_6c
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeResumeVideo(J)I

    .line 335
    :cond_71
    :goto_71
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mVolume:Ljava/lang/Integer;

    if-eqz v0, :cond_7e

    .line 336
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

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

    move-result v0

    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetPlayoutVolume(JI)I

    .line 338
    :cond_7e
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mMin:Ljava/lang/Float;

    if-eqz v0, :cond_95

    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mMax:Ljava/lang/Float;

    if-eqz v1, :cond_95

    .line 339
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    iget-object v3, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mMax:Ljava/lang/Float;

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    invoke-static {v1, v2, v0, v3}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetCacheParams(JFF)I

    .line 341
    :cond_95
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mVolumeIntervalMs:Ljava/lang/Integer;

    if-eqz v0, :cond_a2

    .line 342
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

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

    move-result v0

    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableVolumeEvaluation(JI)I

    .line 344
    :cond_a2
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableCustomRendering:Ljava/lang/Boolean;

    if-eqz v0, :cond_c3

    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    if-eqz v1, :cond_c3

    iget-object v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    if-eqz v1, :cond_c3

    .line 346
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    iget-object v3, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPixelFormatType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;

    .line 347
    invoke-virtual {v3}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelFormatType;->getValue()I

    move-result v3

    iget-object v4, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mBufferType:Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;

    invoke-virtual {v4}, Lcom/tencent/liteav/videobase/base/GLConstants$PixelBufferType;->ordinal()I

    move-result v4

    .line 346
    invoke-static {v1, v2, v0, v3, v4}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableCustomRendering(JZII)I

    .line 349
    :cond_c3
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mEnableObserveAudioFrame:Ljava/lang/Boolean;

    if-eqz v0, :cond_d0

    .line 350
    iget-wide v1, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    invoke-static {v1, v2, v0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableObserveAudioFrame(JZ)I

    .line 352
    :cond_d0
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mSEIPayloadSet:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v0

    if-lez v0, :cond_f5

    .line 353
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mSEIPayloadSet:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_f5

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

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

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

    move-result v1

    .line 354
    iget-wide v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    const/4 v4, 0x1

    invoke-static {v2, v3, v4, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeEnableReceiveSeiMessage(JZI)I

    goto :goto_de

    .line 358
    :cond_f5
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-object v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mGLContext:Ljava/lang/Object;

    invoke-static {v0, v1, v2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetSharedEGLContext(JLjava/lang/Object;)V

    .line 360
    iget-object v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mPropertyMap:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_122

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

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 361
    iget-wide v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    invoke-static {v2, v3, v4, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSetProperty(JLjava/lang/String;Ljava/lang/Object;)I

    goto :goto_106

    .line 364
    :cond_122
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeStartPlay(JLjava/lang/String;)I

    move-result p1

    monitor-exit p0

    return p1

    :catchall_12a
    move-exception p1

    .line 365
    monitor-exit p0
    :try_end_12c
    .catchall {:try_start_1 .. :try_end_12c} :catchall_12a

    throw p1
.end method

.method public stopPlay()I
    .registers 4

    .line 370
    monitor-enter p0

    .line 371
    :try_start_1
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_17

    .line 372
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    iget-boolean v2, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mClearLastImage:Z

    invoke-static {v0, v1, v2}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeStopPlay(JZ)I

    .line 373
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeDestroy(J)V

    const-wide/16 v0, 0x0

    .line 374
    iput-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    .line 376
    :cond_17
    monitor-exit p0

    const/4 v0, 0x0

    return v0

    :catchall_1a
    move-exception v0

    monitor-exit p0
    :try_end_1c
    .catchall {:try_start_1 .. :try_end_1c} :catchall_1a

    throw v0
.end method

.method public switchStream(Ljava/lang/String;)I
    .registers 4

    .line 462
    monitor-enter p0

    .line 463
    :try_start_1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_11

    const-string p1, "V2TXLivePlayerJni"

    const-string v0, "Invalid params."

    .line 464
    invoke-static {p1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, -0x2

    .line 465
    monitor-exit p0

    return p1

    .line 467
    :cond_11
    invoke-direct {p0}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->isNativeValid()Z

    move-result v0

    if-eqz v0, :cond_1f

    .line 468
    iget-wide v0, p0, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->mNativeV2TXLivePlayerJni:J

    invoke-static {v0, v1, p1}, Lcom/tencent/liteav/live/V2TXLivePlayerJni;->nativeSwitchStream(JLjava/lang/String;)I

    move-result p1

    monitor-exit p0

    return p1

    .line 470
    :cond_1f
    monitor-exit p0

    const/4 p1, 0x0

    return p1

    :catchall_22
    move-exception p1

    monitor-exit p0
    :try_end_24
    .catchall {:try_start_1 .. :try_end_24} :catchall_22

    throw p1
.end method