You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
255 lines
7.0 KiB
255 lines
7.0 KiB
.class Lcom/viatech/camera/CameraControlView$8; |
|
.super Ljava/lang/Object; |
|
.source "CameraControlView.java" |
|
|
|
# interfaces |
|
.implements Lcom/viatech/device/DeviceMessage$DeviceMessageCallback; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/camera/CameraControlView; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/camera/CameraControlView;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 1159 |
|
iput-object p1, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onMessageResult(Ljava/lang/String;)V |
|
.locals 7 |
|
|
|
.prologue |
|
const/4 v6, 0x2 |
|
|
|
const/4 v0, 0x1 |
|
|
|
const/4 v1, 0x0 |
|
|
|
.line 1163 |
|
:try_start_0 |
|
new-instance v2, Lorg/json/JSONObject; |
|
|
|
invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V |
|
|
|
.line 1164 |
|
const-string v3, "ret" |
|
|
|
const/4 v4, -0x1 |
|
|
|
invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I |
|
|
|
move-result v3 |
|
|
|
.line 1165 |
|
const-string v4, "status" |
|
|
|
const/4 v5, 0x2 |
|
|
|
invoke-virtual {v2, v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I |
|
|
|
move-result v4 |
|
|
|
.line 1166 |
|
if-nez v3, :cond_1 |
|
|
|
if-eq v4, v6, :cond_1 |
|
|
|
.line 1167 |
|
const-string v3, "Vpai_CameraControlView" |
|
|
|
const-string v4, " live mode" |
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 1170 |
|
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
const/4 v4, 0x1 |
|
|
|
invoke-static {v3, v4}, Lcom/viatech/camera/CameraControlView;->access$702(Lcom/viatech/camera/CameraControlView;Z)Z |
|
|
|
.line 1171 |
|
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
const-string v4, "streamid" |
|
|
|
invoke-virtual {v2, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v3, v4}, Lcom/viatech/camera/CameraControlView;->access$5202(Lcom/viatech/camera/CameraControlView;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
.line 1172 |
|
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
const-string v4, "title" |
|
|
|
const/4 v5, 0x0 |
|
|
|
invoke-virtual {v2, v4, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
invoke-static {v3, v4}, Lcom/viatech/camera/CameraControlView;->access$5302(Lcom/viatech/camera/CameraControlView;Ljava/lang/String;)Ljava/lang/String; |
|
:try_end_0 |
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1 |
|
|
|
.line 1174 |
|
:try_start_1 |
|
const-string v3, "publishtime" |
|
|
|
const-string v4, "0" |
|
|
|
invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
.line 1175 |
|
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J |
|
|
|
move-result-wide v4 |
|
|
|
invoke-static {v3, v4, v5}, Lcom/viatech/camera/CameraControlView;->access$5402(Lcom/viatech/camera/CameraControlView;J)J |
|
:try_end_1 |
|
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0 |
|
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1 |
|
|
|
.line 1180 |
|
:goto_0 |
|
:try_start_2 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/camera/CameraControlView;->showLiveStreamContent()V |
|
:try_end_2 |
|
.catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1 |
|
|
|
.line 1192 |
|
:goto_1 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-static {v2}, Lcom/viatech/camera/CameraControlView;->access$300(Lcom/viatech/camera/CameraControlView;)I |
|
|
|
move-result v2 |
|
|
|
const/4 v3, 0x3 |
|
|
|
if-ne v2, v3, :cond_0 |
|
|
|
.line 1193 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
iget-object v3, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-static {v3}, Lcom/viatech/camera/CameraControlView;->access$700(Lcom/viatech/camera/CameraControlView;)Z |
|
|
|
move-result v3 |
|
|
|
if-nez v3, :cond_2 |
|
|
|
:goto_2 |
|
invoke-virtual {v2, v0}, Lcom/viatech/camera/CameraControlView;->toggleControlView(Z)V |
|
|
|
.line 1195 |
|
:cond_0 |
|
return-void |
|
|
|
.line 1176 |
|
:catch_0 |
|
move-exception v2 |
|
|
|
.line 1177 |
|
:try_start_3 |
|
invoke-virtual {v2}, Ljava/lang/NumberFormatException;->printStackTrace()V |
|
:try_end_3 |
|
.catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1 |
|
|
|
goto :goto_0 |
|
|
|
.line 1189 |
|
:catch_1 |
|
move-exception v2 |
|
|
|
.line 1190 |
|
const-string v2, "Vpai_CameraControlView" |
|
|
|
new-instance v3, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v4, "onMessage bad json: message = " |
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
goto :goto_1 |
|
|
|
.line 1182 |
|
:cond_1 |
|
:try_start_4 |
|
const-string v2, "Vpai_CameraControlView" |
|
|
|
const-string v3, " preview mode" |
|
|
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 1185 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-static {v2, v3}, Lcom/viatech/camera/CameraControlView;->access$702(Lcom/viatech/camera/CameraControlView;Z)Z |
|
|
|
.line 1186 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/camera/CameraControlView;->showPreviewContent()V |
|
|
|
.line 1187 |
|
iget-object v2, p0, Lcom/viatech/camera/CameraControlView$8;->this$0:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-virtual {v2}, Lcom/viatech/camera/CameraControlView;->startPreview()I |
|
:try_end_4 |
|
.catch Lorg/json/JSONException; {:try_start_4 .. :try_end_4} :catch_1 |
|
|
|
goto :goto_1 |
|
|
|
:cond_2 |
|
move v0, v1 |
|
|
|
.line 1193 |
|
goto :goto_2 |
|
.end method
|
|
|