CameraCapturer$1.smali

.class Lorg/webrtc/ali/CameraCapturer$1;
.super Ljava/lang/Object;
.source "CameraCapturer.java"

# interfaces
.implements Lorg/webrtc/ali/CameraSession$CreateSessionCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/webrtc/ali/CameraCapturer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/webrtc/ali/CameraCapturer;


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

    return-void
.end method

.method constructor <init>(Lorg/webrtc/ali/CameraCapturer;)V
    .registers 2
    .param p1, "this$0"    # Lorg/webrtc/ali/CameraCapturer;

    .line 44
    iput-object p1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

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

    return-void
.end method


# virtual methods
.method public onDone(Lorg/webrtc/ali/CameraSession;)V
    .registers 8
    .param p1, "session"    # Lorg/webrtc/ali/CameraSession;

    .line 47
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$000(Lorg/webrtc/ali/CameraCapturer;)V

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

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

    const-string v1, "Create session done. Switch state: "

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

    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    .line 49
    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    move-result-object v1

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

    const-string v1, ". MediaRecorder state: "

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

    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    .line 50
    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$200(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    move-result-object v1

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

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

    move-result-object v0

    .line 48
    const-string v1, "CameraCapturer"

    invoke-static {v1, v0}, Lorg/webrtc/ali/Logging;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 51
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$400(Lorg/webrtc/ali/CameraCapturer;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$300(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Runnable;

    move-result-object v1

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

    .line 52
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$500(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Object;

    move-result-object v0

    monitor-enter v0

    .line 53
    :try_start_45
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$600(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/VideoCapturer$CapturerObserver;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v1, v2}, Lorg/webrtc/ali/VideoCapturer$CapturerObserver;->onCapturerStarted(Z)V

    .line 54
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$702(Lorg/webrtc/ali/CameraCapturer;Z)Z

    .line 55
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, p1}, Lorg/webrtc/ali/CameraCapturer;->access$802(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraSession;)Lorg/webrtc/ali/CameraSession;

    .line 56
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    new-instance v3, Lorg/webrtc/ali/CameraVideoCapturer$CameraStatistics;

    iget-object v4, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v4}, Lorg/webrtc/ali/CameraCapturer;->access$1000(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/SurfaceTextureHelper;

    move-result-object v4

    iget-object v5, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v5}, Lorg/webrtc/ali/CameraCapturer;->access$1100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;

    move-result-object v5

    invoke-direct {v3, v4, v5}, Lorg/webrtc/ali/CameraVideoCapturer$CameraStatistics;-><init>(Lorg/webrtc/ali/SurfaceTextureHelper;Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;)V

    invoke-static {v1, v3}, Lorg/webrtc/ali/CameraCapturer;->access$902(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$CameraStatistics;)Lorg/webrtc/ali/CameraVideoCapturer$CameraStatistics;

    .line 57
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$1202(Lorg/webrtc/ali/CameraCapturer;Z)Z

    .line 58
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$500(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 60
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->IN_PROGRESS:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    const/4 v3, 0x0

    if-ne v1, v2, :cond_b7

    .line 61
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1300(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    move-result-object v1

    if-eqz v1, :cond_af

    .line 62
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1300(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    move-result-object v1

    iget-object v2, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v2}, Lorg/webrtc/ali/CameraCapturer;->access$1500(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraEnumerator;

    move-result-object v2

    iget-object v4, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v4}, Lorg/webrtc/ali/CameraCapturer;->access$1400(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v4}, Lorg/webrtc/ali/CameraEnumerator;->isFrontFacing(Ljava/lang/String;)Z

    move-result v2

    invoke-interface {v1, v2}, Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;->onCameraSwitchDone(Z)V

    .line 63
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v3}, Lorg/webrtc/ali/CameraCapturer;->access$1302(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    .line 65
    :cond_af
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->IDLE:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$102(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$SwitchState;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    goto :goto_d3

    .line 66
    :cond_b7
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->PENDING:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    if-ne v1, v2, :cond_d3

    .line 67
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->IDLE:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$102(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$SwitchState;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    .line 68
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    iget-object v2, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v2}, Lorg/webrtc/ali/CameraCapturer;->access$1300(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    move-result-object v2

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$1600(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;)V

    .line 71
    :cond_d3
    :goto_d3
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$200(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->IDLE_TO_ACTIVE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    if-eq v1, v2, :cond_e7

    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    .line 72
    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$200(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->ACTIVE_TO_IDLE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    if-ne v1, v2, :cond_116

    .line 73
    :cond_e7
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1700(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    move-result-object v1

    if-eqz v1, :cond_fd

    .line 74
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1700(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    move-result-object v1

    invoke-interface {v1}, Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;->onMediaRecorderSuccess()V

    .line 75
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v3}, Lorg/webrtc/ali/CameraCapturer;->access$1702(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    .line 77
    :cond_fd
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$200(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->IDLE_TO_ACTIVE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    if-ne v1, v2, :cond_10f

    .line 78
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->ACTIVE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$202(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    goto :goto_116

    .line 80
    :cond_10f
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->IDLE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$202(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    .line 83
    :cond_116
    :goto_116
    monitor-exit v0

    .line 84
    return-void

    .line 83
    :catchall_118
    move-exception v1

    monitor-exit v0
    :try_end_11a
    .catchall {:try_start_45 .. :try_end_11a} :catchall_118

    throw v1
.end method

.method public onFailure(Lorg/webrtc/ali/CameraSession$FailureType;Ljava/lang/String;)V
    .registers 9
    .param p1, "failureType"    # Lorg/webrtc/ali/CameraSession$FailureType;
    .param p2, "error"    # Ljava/lang/String;

    .line 88
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$000(Lorg/webrtc/ali/CameraCapturer;)V

    .line 89
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$400(Lorg/webrtc/ali/CameraCapturer;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$300(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Runnable;

    move-result-object v1

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

    .line 90
    iget-object v0, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v0}, Lorg/webrtc/ali/CameraCapturer;->access$500(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Object;

    move-result-object v0

    monitor-enter v0

    .line 91
    :try_start_1b
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$600(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/VideoCapturer$CapturerObserver;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Lorg/webrtc/ali/VideoCapturer$CapturerObserver;->onCapturerStarted(Z)V

    .line 92
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1810(Lorg/webrtc/ali/CameraCapturer;)I

    .line 94
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1800(Lorg/webrtc/ali/CameraCapturer;)I

    move-result v1

    const/4 v3, 0x0

    if-gtz v1, :cond_bd

    .line 95
    const-string v1, "CameraCapturer"

    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, "Opening camera failed, passing: "

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

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

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

    move-result-object v4

    invoke-static {v1, v4}, Lorg/webrtc/ali/Logging;->w(Ljava/lang/String;Ljava/lang/String;)V

    .line 96
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$702(Lorg/webrtc/ali/CameraCapturer;Z)Z

    .line 97
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$500(Lorg/webrtc/ali/CameraCapturer;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 99
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->IDLE:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    if-eq v1, v2, :cond_7e

    .line 100
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1300(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    move-result-object v1

    if-eqz v1, :cond_77

    .line 101
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1300(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    move-result-object v1

    invoke-interface {v1, p2}, Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;->onCameraSwitchError(Ljava/lang/String;)V

    .line 102
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v3}, Lorg/webrtc/ali/CameraCapturer;->access$1302(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;)Lorg/webrtc/ali/CameraVideoCapturer$CameraSwitchHandler;

    .line 104
    :cond_77
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$SwitchState;->IDLE:Lorg/webrtc/ali/CameraCapturer$SwitchState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$102(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$SwitchState;)Lorg/webrtc/ali/CameraCapturer$SwitchState;

    .line 107
    :cond_7e
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$200(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    move-result-object v1

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->IDLE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    if-eq v1, v2, :cond_a5

    .line 108
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1700(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    move-result-object v1

    if-eqz v1, :cond_9e

    .line 109
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1700(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    move-result-object v1

    invoke-interface {v1, p2}, Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;->onMediaRecorderError(Ljava/lang/String;)V

    .line 110
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1, v3}, Lorg/webrtc/ali/CameraCapturer;->access$1702(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;)Lorg/webrtc/ali/CameraVideoCapturer$MediaRecorderHandler;

    .line 112
    :cond_9e
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    sget-object v2, Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;->IDLE:Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    invoke-static {v1, v2}, Lorg/webrtc/ali/CameraCapturer;->access$202(Lorg/webrtc/ali/CameraCapturer;Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;)Lorg/webrtc/ali/CameraCapturer$MediaRecorderState;

    .line 115
    :cond_a5
    sget-object v1, Lorg/webrtc/ali/CameraSession$FailureType;->DISCONNECTED:Lorg/webrtc/ali/CameraSession$FailureType;

    if-ne p1, v1, :cond_b3

    .line 116
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;

    move-result-object v1

    invoke-interface {v1}, Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;->onCameraDisconnected()V

    goto :goto_da

    .line 118
    :cond_b3
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    invoke-static {v1}, Lorg/webrtc/ali/CameraCapturer;->access$1100(Lorg/webrtc/ali/CameraCapturer;)Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;

    move-result-object v1

    invoke-interface {v1, p2}, Lorg/webrtc/ali/CameraVideoCapturer$CameraEventsHandler;->onCameraError(Ljava/lang/String;)V

    goto :goto_da

    .line 121
    :cond_bd
    const-string v1, "CameraCapturer"

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v4, "Opening camera failed, retry: "

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

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

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

    move-result-object v2

    invoke-static {v1, v2}, Lorg/webrtc/ali/Logging;->w(Ljava/lang/String;Ljava/lang/String;)V

    .line 122
    iget-object v1, p0, Lorg/webrtc/ali/CameraCapturer$1;->this$0:Lorg/webrtc/ali/CameraCapturer;

    const/16 v2, 0x1f4

    invoke-static {v1, v2, v3}, Lorg/webrtc/ali/CameraCapturer;->access$1900(Lorg/webrtc/ali/CameraCapturer;ILandroid/media/MediaRecorder;)V

    .line 124
    :goto_da
    monitor-exit v0

    .line 125
    return-void

    .line 124
    :catchall_dc
    move-exception v1

    monitor-exit v0
    :try_end_de
    .catchall {:try_start_1b .. :try_end_de} :catchall_dc

    throw v1
.end method