d.smali
.class public final Lretrofit2/adapter/rxjava2/d;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/play/core/assetpacks/g1;
.implements Lcom/shopee/sz/player/api/b;
# instance fields
.field public a:Ljava/lang/Object;
.field public b:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>()V
.registers 2
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "ImagePreload-ImageFileStorage"
.line 3
iput-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
.line 4
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
return-void
.end method
.method public synthetic constructor <init>(Landroid/content/Context;)V
.registers 3
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 6
new-instance v0, Lcom/shopee/liveplayersdk/w/e;
invoke-direct {v0, p1}, Lcom/shopee/liveplayersdk/w/e;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Object;Ljava/lang/Object;)V
.registers 3
.line 1
iput-object p1, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
iput-object p2, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Landroid/view/View;)V
.registers 3
.line 1
iput-object p1, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
.line 2
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 3
check-cast p1, Lcom/shopee/wrapperview/a;
iput-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
return-void
.end method
.method public final b(Z)Z
.registers 2
const/4 p1, 0x1
return p1
.end method
.method public final declared-synchronized c(Ljava/lang/String;)Ljava/io/File;
.registers 7
monitor-enter p0
.line 1
:try_start_1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
check-cast v0, Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;
move-result-object v0
.line 2
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_d
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_23
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v3, v1
check-cast v3, Ljava/lang/String;
const/4 v4, 0x0
.line 3
invoke-static {p1, v3, v4}, Lkotlin/text/w;->x(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
move-result v3
if-eqz v3, :cond_d
goto :goto_24
:cond_23
move-object v1, v2
.line 4
:goto_24
check-cast v1, Ljava/lang/String;
:try_end_26
.catchall {:try_start_1 .. :try_end_26} :catchall_3f
if-nez v1, :cond_2a
monitor-exit p0
return-object v2
.line 5
:cond_2a
:try_start_2a
monitor-enter p0
:try_end_2b
.catchall {:try_start_2a .. :try_end_2b} :catchall_3f
.line 6
:try_start_2b
iget-object p1, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
check-cast p1, Ljava/util/HashMap;
invoke-virtual {p1, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/shopee/app/react/prefetch/image/l;
if-eqz p1, :cond_39
.line 7
iget-object v2, p1, Lcom/shopee/app/react/prefetch/image/l;->c:Ljava/io/File;
:try_end_39
.catchall {:try_start_2b .. :try_end_39} :catchall_3c
.line 8
:cond_39
:try_start_39
monitor-exit p0
:try_end_3a
.catchall {:try_start_39 .. :try_end_3a} :catchall_3f
.line 9
monitor-exit p0
return-object v2
:catchall_3c
move-exception p1
.line 10
:try_start_3d
monitor-exit p0
throw p1
:try_end_3f
.catchall {:try_start_3d .. :try_end_3f} :catchall_3f
:catchall_3f
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final d()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public final destory()V
.registers 5
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
move-object v1, v0
check-cast v1, Lcom/shopee/liveplayersdk/w/e;
if-eqz v1, :cond_49
.line 2
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 3
sget v1, Lcom/shopee/shopeexlog/config/a;->m:I
.line 4
sget-object v1, Lcom/shopee/shopeexlog/config/a$b;->a:Lcom/shopee/shopeexlog/config/a;
.line 5
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v1, 0x0
.line 6
:try_start_14
invoke-static {v1}, Lcom/tencent/mars/xlog/Log;->appenderFlush(Z)V
:try_end_17
.catchall {:try_start_14 .. :try_end_17} :catchall_18
goto :goto_19
:catchall_18
nop
.line 7
:goto_19
invoke-virtual {v0, v1}, Lcom/shopee/liveplayersdk/w/e;->setJoinState(Z)V
.line 8
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
if-eqz v1, :cond_2a
.line 9
invoke-interface {v1}, Lcom/shopee/wrapperview/a;->c()V
.line 10
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
iget-wide v2, v0, Lcom/shopee/liveplayersdk/w/e;->j:J
invoke-interface {v1, v2, v3}, Lcom/shopee/wrapperview/a;->d(J)V
.line 11
:cond_2a
monitor-enter v0
.line 12
:try_start_2b
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->e:Landroid/os/Handler;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
const/4 v1, 0x1
.line 13
iput-boolean v1, v0, Lcom/shopee/liveplayersdk/w/e;->a:Z
:try_end_34
.catchall {:try_start_2b .. :try_end_34} :catchall_46
.line 14
monitor-exit v0
.line 15
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz v1, :cond_3c
.line 16
invoke-virtual {v1}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;->destory()V
.line 17
:cond_3c
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
if-eqz v1, :cond_49
.line 18
invoke-virtual {v1}, Lcom/shopee/sszrtc/RtcEngine;->w()V
.line 19
iput-object v2, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
goto :goto_49
:catchall_46
move-exception v1
.line 20
monitor-exit v0
throw v1
:cond_49
:goto_49
return-void
.end method
.method public final e(Lcom/shopee/sz/player/api/c;)V
.registers 2
return-void
.end method
.method public final f(Z)I
.registers 6
.line 1
iget-object p1, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast p1, Lcom/shopee/liveplayersdk/w/e;
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v0, 0x0
new-array v1, v0, [Ljava/lang/Object;
const-string v2, "MMCRtcLivePlayer"
const-string v3, "stopPlay\uff01"
.line 2
invoke-static {v2, v3, v1}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3
iget-object v1, p1, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
if-eqz v1, :cond_1a
.line 4
iget-wide v2, p1, Lcom/shopee/liveplayersdk/w/e;->j:J
invoke-interface {v1, v2, v3}, Lcom/shopee/wrapperview/a;->d(J)V
.line 5
:cond_1a
invoke-virtual {p1}, Lcom/shopee/liveplayersdk/w/e;->leaveChannel()V
return v0
.end method
.method public final g(Lcom/shopee/sz/player/api/a;)V
.registers 2
return-void
.end method
.method public final isPlaying()Z
.registers 3
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
.line 2
iget-boolean v1, v0, Lcom/shopee/liveplayersdk/w/e;->g:Z
if-eqz v1, :cond_e
iget-boolean v0, v0, Lcom/shopee/liveplayersdk/w/e;->i:Z
if-nez v0, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
return v0
.end method
.method public final j(Lcom/shopee/sz/player/api/a;)V
.registers 2
return-void
.end method
.method public final m(Ljava/lang/String;I)I
.registers 11
.line 1
iget-object p2, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
move-object v0, p2
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 p2, 0x0
new-array v1, p2, [Ljava/lang/Object;
const-string v2, "MMCRtcLivePlayer"
const-string v3, "startPlay\uff01"
.line 2
invoke-static {v2, v3, v1}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "setupLocalVideo: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v3, v0, Lcom/shopee/liveplayersdk/w/e;->h:Z
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-array v3, p2, [Ljava/lang/Object;
.line 4
invoke-static {v2, v1, v3}, Lcom/shopee/shopeexlog/config/b;->B(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 5
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
const/4 v7, 0x0
if-eqz v1, :cond_b2
iget-boolean v1, v0, Lcom/shopee/liveplayersdk/w/e;->h:Z
if-nez v1, :cond_b2
new-array v1, p2, [Ljava/lang/Object;
const-string v3, "localView\uff01"
.line 6
invoke-static {v2, v3, v1}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 7
iget-boolean v1, v0, Lcom/shopee/livetechtrackreport/c;->useSelfCapture:Z
const/4 v3, 0x1
if-eqz v1, :cond_9c
.line 8
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 9
new-instance v1, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
iget-object v4, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
invoke-direct {v1, v4, p2}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;-><init>(Landroid/content/Context;Z)V
iput-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
.line 10
iget-object v1, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
.line 11
new-instance v4, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;
invoke-direct {v4}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;-><init>()V
.line 12
invoke-static {v1}, Lcom/shopee/sz/yasea/util/SSZCommonUtils;->getMobileRotation(Landroid/content/Context;)I
move-result v1
invoke-virtual {v4, v1}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;->setMobileOrientation(I)Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;
move-result-object v1
.line 13
invoke-virtual {v1}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;->build()Lcom/shopee/sz/yasea/contract/SSZVideoConfig;
move-result-object v1
.line 14
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
invoke-virtual {v4, v1}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->setVideoConfig(Lcom/shopee/sz/yasea/contract/SSZVideoConfig;)V
.line 15
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->p:Lcom/shopee/sz/yasea/SSZLivePushConfig;
if-nez v1, :cond_81
.line 16
new-instance v1, Lcom/shopee/sz/yasea/SSZLivePushConfig;
invoke-direct {v1}, Lcom/shopee/sz/yasea/SSZLivePushConfig;-><init>()V
iput-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->p:Lcom/shopee/sz/yasea/SSZLivePushConfig;
.line 17
invoke-virtual {v1, v3}, Lcom/shopee/sz/yasea/SSZLivePushConfig;->setPauseFlag(I)V
.line 18
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->p:Lcom/shopee/sz/yasea/SSZLivePushConfig;
invoke-virtual {v1, v7}, Lcom/shopee/sz/yasea/SSZLivePushConfig;->setPauseImg(Landroid/graphics/Bitmap;)V
.line 19
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
if-eqz v1, :cond_81
.line 20
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->p:Lcom/shopee/sz/yasea/SSZLivePushConfig;
invoke-virtual {v1, p2}, Lcom/shopee/sz/yasea/SSZLivePushConfig;->setVideoResolution(I)V
.line 21
:cond_81
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->p:Lcom/shopee/sz/yasea/SSZLivePushConfig;
invoke-virtual {v1, v4}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->setConfig(Lcom/shopee/sz/yasea/SSZLivePushConfig;)Z
.line 22
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
new-instance v4, Lcom/shopee/liveplayersdk/w/c;
invoke-direct {v4, v0}, Lcom/shopee/liveplayersdk/w/c;-><init>(Lcom/shopee/liveplayersdk/w/e;)V
invoke-virtual {v1, v4}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->setPushSourceCallback(Lcom/shopee/sz/yasea/contract/SSZPushSource$PushSourceCallback;)V
.line 23
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
new-instance v4, Lcom/shopee/liveplayersdk/w/d;
invoke-direct {v4, v0}, Lcom/shopee/liveplayersdk/w/d;-><init>(Lcom/shopee/liveplayersdk/w/e;)V
invoke-virtual {v1, v4}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->setPushSourceRenderCallback(Lcom/shopee/sz/yasea/contract/SSZPushSource$PushSourceRenderCallback;)V
.line 24
:cond_9c
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz v1, :cond_b0
new-array p2, p2, [Ljava/lang/Object;
const-string v1, "addLocalView\uff01"
.line 25
invoke-static {v2, v1, p2}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 26
iget-object p2, v0, Lcom/shopee/liveplayersdk/w/e;->b:Lcom/shopee/wrapperview/a;
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
iget-boolean v2, v0, Lcom/shopee/livetechtrackreport/c;->useSelfCapture:Z
invoke-interface {p2, v1, v2}, Lcom/shopee/wrapperview/a;->f(Landroid/view/View;I)V
.line 27
:cond_b0
iput-boolean v3, v0, Lcom/shopee/liveplayersdk/w/e;->h:Z
.line 28
:cond_b2
iget-object p2, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz p2, :cond_b9
.line 29
invoke-virtual {p2}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->startSource()Z
:cond_b9
const-wide/high16 v1, -0x8000000000000000L
.line 30
iget-object p2, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
if-eqz p2, :cond_cc
.line 31
invoke-static {p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 32
iget-object p2, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
invoke-static {p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const-wide/16 v1, 0x0
move-wide v3, v1
move-object v5, v7
goto :goto_d0
:cond_cc
const-string p2, ""
move-object v5, p2
move-wide v3, v1
:goto_d0
move-object v1, v5
move-object v2, v5
move-object v6, p1
.line 33
invoke-virtual/range {v0 .. v6}, Lcom/shopee/liveplayersdk/w/e;->joinChannel(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)I
throw v7
.end method
.method public final n(Lcom/shopee/sz/player/api/f;)V
.registers 9
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
.line 2
iput-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
const/4 v1, 0x0
const-string v2, "MMCRtcLivePlayer"
if-eqz p1, :cond_e6
.line 3
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
if-nez p1, :cond_e6
.line 4
:try_start_f
sget-object p1, Lcom/shopee/liveplayersdk/g;->INSTANCE:Lcom/shopee/liveplayersdk/g;
iget-object v3, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
invoke-virtual {p1, v3}, Lcom/shopee/liveplayersdk/g;->setContext(Landroid/content/Context;)V
const/4 v3, 0x1
.line 5
sput-boolean v3, Lcom/shopee/sszrtc/RtcEngine;->b:Z
.line 6
invoke-static {p1}, Lcom/shopee/sszrtc/RtcEngine;->M(Lcom/shopee/sszrtc/interfaces/d;)V
const/4 p1, 0x0
.line 7
iput-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->n:Ljava/lang/String;
.line 8
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
if-nez v4, :cond_9a
.line 9
iget-object v4, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
iget-object v5, v0, Lcom/shopee/liveplayersdk/w/e;->k:Lcom/shopee/sz/player/api/f;
invoke-static {v5}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const-string v5, "legacy"
invoke-static {v4, v5}, Lcom/shopee/sszrtc/RtcEngine;->v(Landroid/content/Context;Ljava/lang/String;)Lcom/shopee/sszrtc/RtcEngine;
move-result-object v4
iput-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
.line 10
iget-object v5, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
instance-of v6, v5, Landroidx/lifecycle/n;
if-eqz v6, :cond_3d
.line 11
check-cast v5, Landroidx/lifecycle/n;
.line 12
invoke-virtual {v4, v5}, Lcom/shopee/sszrtc/RtcEngine;->u(Landroidx/lifecycle/n;)V
.line 13
:cond_3d
sget-object v4, Landroidx/biometric/u;->b:Landroidx/biometric/u;
.line 14
new-instance v5, Lcom/shopee/sszrtc/protoo/a;
invoke-direct {v5, v4, v1}, Lcom/shopee/sszrtc/protoo/a;-><init>(Lcom/shopee/sszrtc/protoo/a$a;Z)V
.line 15
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v4, v5}, Lcom/shopee/sszrtc/RtcEngine;->S(Lcom/shopee/sszrtc/protoo/a;)V
.line 16
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v4, v0}, Lcom/shopee/sszrtc/RtcEngine;->q(Lcom/shopee/sszrtc/interfaces/c;)V
.line 17
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v4, v0}, Lcom/shopee/sszrtc/RtcEngine;->t(Lcom/shopee/sszrtc/interfaces/f;)V
.line 18
iget-object v4, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
instance-of v5, v4, Landroid/app/Activity;
if-eqz v5, :cond_64
.line 19
check-cast v4, Landroid/app/Activity;
.line 20
iget-object v5, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v4}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v4
invoke-virtual {v5, v4, v3}, Lcom/shopee/sszrtc/RtcEngine;->C(Landroid/view/Window;Z)V
.line 21
:cond_64
iget-object v4, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v4, v3}, Lcom/shopee/sszrtc/RtcEngine;->P(Z)V
.line 22
iget-object v3, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v3, v0}, Lcom/shopee/sszrtc/RtcEngine;->q(Lcom/shopee/sszrtc/interfaces/c;)V
.line 23
iget-object v3, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v3, v0}, Lcom/shopee/sszrtc/RtcEngine;->t(Lcom/shopee/sszrtc/interfaces/f;)V
.line 24
iget-object v3, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
const-string v4, "front"
invoke-virtual {v3, v4}, Lcom/shopee/sszrtc/RtcEngine;->V(Ljava/lang/String;)V
.line 25
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "RtcEngine create player Success with:"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " useSelfCapture:"
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean p1, v0, Lcom/shopee/livetechtrackreport/c;->useSelfCapture:Z
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array v3, v1, [Ljava/lang/Object;
.line 26
invoke-static {v2, p1, v3}, Lcom/shopee/shopeexlog/config/b;->B(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 27
:cond_9a
iget-boolean p1, v0, Lcom/shopee/livetechtrackreport/c;->useSelfCapture:Z
if-eqz p1, :cond_a3
.line 28
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {p1}, Lcom/shopee/sszrtc/RtcEngine;->T()V
.line 29
:cond_a3
new-instance p1, Lcom/shopee/sszrtc/video/f;
.line 30
invoke-direct {p1, v1}, Lcom/shopee/sszrtc/video/f;-><init>(Z)V
const v3, 0x30d40
const v4, 0x16e360
const v5, 0xf4240
.line 31
iput v4, p1, Lcom/shopee/sszrtc/video/f;->c:I
.line 32
iput v3, p1, Lcom/shopee/sszrtc/video/f;->d:I
.line 33
iput v5, p1, Lcom/shopee/sszrtc/video/f;->e:I
const/16 v3, 0xf
.line 34
iput v3, p1, Lcom/shopee/sszrtc/video/f;->f:I
.line 35
new-instance v3, Lcom/shopee/sszrtc/video/e;
const/16 v4, 0x280
const/16 v5, 0x168
invoke-direct {v3, v4, v5}, Lcom/shopee/sszrtc/video/e;-><init>(II)V
.line 36
iput-object v3, p1, Lcom/shopee/sszrtc/video/f;->b:Lcom/shopee/sszrtc/video/e;
.line 37
iget-object v3, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v3, p1}, Lcom/shopee/sszrtc/RtcEngine;->Q(Lcom/shopee/sszrtc/video/f;)V
:try_end_cb
.catch Ljava/lang/Exception; {:try_start_f .. :try_end_cb} :catch_cc
goto :goto_e6
:catch_cc
move-exception p1
.line 38
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
.line 39
invoke-static {v2, v0, v1}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 40
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "NEED TO check rtc sdk init fatal error\n"
.line 41
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 42
invoke-static {p1, v1}, Landroidx/appcompat/q;->e(Ljava/lang/Exception;Ljava/lang/StringBuilder;)Ljava/lang/String;
move-result-object p1
.line 43
invoke-direct {v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.line 44
:cond_e6
:goto_e6
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz p1, :cond_109
new-array p1, v1, [Ljava/lang/Object;
const-string v1, "setConfig set format -2"
.line 45
invoke-static {v2, v1, p1}, Lcom/shopee/shopeexlog/config/b;->B(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 46
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
iget-object v0, v0, Lcom/shopee/livetechtrackreport/c;->mContext:Landroid/content/Context;
.line 47
new-instance v1, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;
invoke-direct {v1}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;-><init>()V
.line 48
invoke-static {v0}, Lcom/shopee/sz/yasea/util/SSZCommonUtils;->getMobileRotation(Landroid/content/Context;)I
move-result v0
invoke-virtual {v1, v0}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;->setMobileOrientation(I)Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;
move-result-object v0
.line 49
invoke-virtual {v0}, Lcom/shopee/sz/yasea/contract/SSZVideoConfig$Builder;->build()Lcom/shopee/sz/yasea/contract/SSZVideoConfig;
move-result-object v0
.line 50
invoke-virtual {p1, v0}, Lcom/shopee/sz/yasea/capture/SSZCloudVideoView;->setVideoConfig(Lcom/shopee/sz/yasea/contract/SSZVideoConfig;)V
:cond_109
return-void
.end method
.method public final p()V
.registers 1
return-void
.end method
.method public final pause()V
.registers 6
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
const-string v3, "MMCRtcLivePlayer"
const-string v4, "on MMCRtcLivePlayer -pause"
.line 2
invoke-static {v3, v4, v2}, Lcom/shopee/shopeexlog/config/b;->B(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3
iget-object v2, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
const/4 v3, 0x1
if-eqz v2, :cond_27
.line 4
invoke-virtual {v2}, Lcom/shopee/sszrtc/RtcEngine;->z()Z
move-result v2
iput-boolean v2, v0, Lcom/shopee/liveplayersdk/w/e;->o:Z
.line 5
iget-object v2, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v2, v3, v1}, Lcom/shopee/sszrtc/RtcEngine;->E(ZZ)V
.line 6
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/shopee/sszrtc/RtcEngine;->O(F)V
.line 7
:cond_27
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz v1, :cond_2e
.line 8
invoke-virtual {v1}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;->pause()V
.line 9
:cond_2e
iput-boolean v3, v0, Lcom/shopee/liveplayersdk/w/e;->i:Z
return-void
.end method
.method public final prepare(Ljava/lang/String;)I
.registers 2
const/4 p1, 0x0
return p1
.end method
.method public final resume()V
.registers 5
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
.line 2
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
const/4 v2, 0x0
if-eqz v1, :cond_26
.line 3
iget-boolean v3, v0, Lcom/shopee/liveplayersdk/w/e;->o:Z
if-eqz v3, :cond_1a
const/4 v3, 0x0
.line 4
invoke-virtual {v1, v3}, Lcom/shopee/sszrtc/RtcEngine;->O(F)V
.line 5
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
const/4 v3, 0x1
invoke-virtual {v1, v3, v2}, Lcom/shopee/sszrtc/RtcEngine;->E(ZZ)V
.line 6
iput-boolean v3, v0, Lcom/shopee/liveplayersdk/w/e;->o:Z
goto :goto_26
:cond_1a
const/high16 v3, 0x3f800000 # 1.0f
.line 7
invoke-virtual {v1, v3}, Lcom/shopee/sszrtc/RtcEngine;->O(F)V
.line 8
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
invoke-virtual {v1, v2, v2}, Lcom/shopee/sszrtc/RtcEngine;->E(ZZ)V
.line 9
iput-boolean v2, v0, Lcom/shopee/liveplayersdk/w/e;->o:Z
.line 10
:cond_26
:goto_26
iget-object v1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz v1, :cond_2d
.line 11
invoke-virtual {v1}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;->resume()V
.line 12
:cond_2d
iput-boolean v2, v0, Lcom/shopee/liveplayersdk/w/e;->i:Z
return-void
.end method
.method public final setMute(Z)V
.registers 5
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
const/4 v1, 0x1
if-eqz p1, :cond_16
.line 2
iget-object v2, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
if-eqz v2, :cond_e
.line 3
invoke-virtual {v2, p1, v1}, Lcom/shopee/sszrtc/RtcEngine;->E(ZZ)V
.line 4
:cond_e
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz p1, :cond_24
.line 5
invoke-virtual {p1}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;->pause()V
goto :goto_24
.line 6
:cond_16
iget-object v2, v0, Lcom/shopee/liveplayersdk/w/e;->d:Lcom/shopee/sszrtc/RtcEngine;
if-eqz v2, :cond_1d
.line 7
invoke-virtual {v2, p1, v1}, Lcom/shopee/sszrtc/RtcEngine;->E(ZZ)V
.line 8
:cond_1d
iget-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->c:Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;
if-eqz p1, :cond_24
.line 9
invoke-virtual {p1}, Lcom/shopee/sz/yasea/capture/SSZEffectCloudVideoView;->resume()V
:cond_24
:goto_24
return-void
.end method
.method public final setRenderMode(I)V
.registers 2
iget-object p1, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast p1, Lcom/shopee/liveplayersdk/w/e;
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public final setRenderRotation(I)V
.registers 2
return-void
.end method
.method public final v(Lcom/shopee/sz/player/api/a;)V
.registers 3
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/liveplayersdk/w/e;
.line 2
iput-object p1, v0, Lcom/shopee/liveplayersdk/w/e;->f:Lcom/shopee/sz/player/api/a;
return-void
.end method
.method public final w(Ljava/lang/String;)V
.registers 4
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "MMCRtcLivePlayerDelegate"
const-string v1, "updateLasUrl Not Implemented"
invoke-static {v0, v1, p1}, Lcom/shopee/shopeexlog/config/b;->C(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public final zza()Ljava/lang/Object;
.registers 5
iget-object v0, p0, Lretrofit2/adapter/rxjava2/d;->a:Ljava/lang/Object;
check-cast v0, Lcom/google/android/play/core/assetpacks/h1;
iget-object v1, p0, Lretrofit2/adapter/rxjava2/d;->b:Ljava/lang/Object;
check-cast v1, Landroid/os/Bundle;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "session_id"
.line 1
invoke-virtual {v1, v2}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
move-result v2
if-nez v2, :cond_16
.line 2
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
goto :goto_53
:cond_16
iget-object v3, v0, Lcom/google/android/play/core/assetpacks/h1;->e:Ljava/util/HashMap;
.line 3
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v3, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_25
.line 4
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
goto :goto_53
:cond_25
iget-object v0, v0, Lcom/google/android/play/core/assetpacks/h1;->e:Ljava/util/HashMap;
.line 5
invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/play/core/assetpacks/e1;
.line 6
iget-object v2, v0, Lcom/google/android/play/core/assetpacks/e1;->c:Lcom/google/android/play/core/assetpacks/d1;
iget v2, v2, Lcom/google/android/play/core/assetpacks/d1;->d:I
const/4 v3, 0x6
if-ne v2, v3, :cond_37
.line 7
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
goto :goto_53
.line 8
:cond_37
invoke-static {v1}, Lcom/google/android/play/core/assetpacks/h1;->d(Landroid/os/Bundle;)Ljava/lang/String;
move-result-object v2
const-string v3, "status"
.line 9
invoke-static {v3, v2}, Landroidx/appcompat/c;->O0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
.line 10
invoke-virtual {v1, v2}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
move-result v1
.line 11
iget-object v0, v0, Lcom/google/android/play/core/assetpacks/e1;->c:Lcom/google/android/play/core/assetpacks/d1;
iget v0, v0, Lcom/google/android/play/core/assetpacks/d1;->d:I
invoke-static {v0, v1}, Lcom/google/android/play/core/assetpacks/q1;->c(II)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
:goto_53
return-object v0
.end method