.class Lcom/viatech/camera/CreateLiveStreamActivity$13$2; .super Ljava/lang/Object; .source "CreateLiveStreamActivity.java" # interfaces .implements Lcom/viatech/device/DeviceMessage$DeviceMessageCallback; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/camera/CreateLiveStreamActivity$13;->onCompleted(Lcom/facebook/GraphResponse;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; .field final synthetic val$streamUrl:Ljava/lang/String; # direct methods .method constructor (Lcom/viatech/camera/CreateLiveStreamActivity$13;Ljava/lang/String;)V .locals 0 .prologue .line 1383 iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iput-object p2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->val$streamUrl:Ljava/lang/String; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onMessageResult(Ljava/lang/String;)V .locals 6 .prologue const v5, 0x7f0700cf const/4 v4, 0x1 .line 1386 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$2500(Lcom/viatech/camera/CreateLiveStreamActivity;)V .line 1387 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$900(Lcom/viatech/camera/CreateLiveStreamActivity;)Z move-result v0 if-eqz v0, :cond_1 .line 1389 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1000(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 .line 1390 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1000(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; move-result-object v0 const/4 v1, 0x0 invoke-static {v0, v1}, Lcom/viatech/b/a;->a(Ljava/lang/String;Lcom/viatech/b/a$a;)V .line 1393 :cond_0 sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView; iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v1, v1, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1000(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; move-result-object v1 new-instance v2, Lcom/viatech/camera/CreateLiveStreamActivity$13$2$1; invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$13$2$1;->(Lcom/viatech/camera/CreateLiveStreamActivity$13$2;)V invoke-virtual {v0, v1, v2}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I .line 1424 :goto_0 return-void .line 1402 :cond_1 :try_start_0 new-instance v0, Lorg/json/JSONObject; invoke-direct {v0, p1}, Lorg/json/JSONObject;->(Ljava/lang/String;)V .line 1403 const-string v1, "ret" const/4 v2, -0x1 invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I move-result v0 .line 1404 if-eqz v0, :cond_2 .line 1405 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; move-result-object v0 invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V .line 1406 sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; const v1, 0x7f0700cf const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiToast;->show(II)V :try_end_0 .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 .line 1419 :catch_0 move-exception v0 .line 1420 const-string v1, "Vpai_CreateLiveStreamActivity" new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "startLiveStream onMessage bad json: message = " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String; move-result-object v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I .line 1421 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1400(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; move-result-object v0 invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V .line 1422 sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; invoke-virtual {v0, v5, v4}, Lcom/viatech/widget/VPaiToast;->show(II)V goto :goto_0 .line 1408 :cond_2 :try_start_1 sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; const v1, 0x7f0700e9 const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiToast;->show(II)V .line 1409 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getIntent()Landroid/content/Intent; move-result-object v0 .line 1410 const-string v1, "broadcast_id" iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v2, v2, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1000(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 1411 const-string v1, "broadcast_title" iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v2, v2, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1500(Lcom/viatech/camera/CreateLiveStreamActivity;)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 1412 const-string v1, "broadcast_publish_time" iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v2, v2, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1600(Lcom/viatech/camera/CreateLiveStreamActivity;)J move-result-wide v2 invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent; .line 1413 const-string v1, "broadcast_watch_url" iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->val$streamUrl:Ljava/lang/String; invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 1414 const-string v1, "broadcast_living" const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; .line 1415 const-string v1, "broadcast_publish_type" const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; .line 1416 iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v1, v1, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; const/4 v2, -0x1 invoke-virtual {v1, v2, v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->setResult(ILandroid/content/Intent;)V .line 1417 iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$13$2;->this$1:Lcom/viatech/camera/CreateLiveStreamActivity$13; iget-object v0, v0, Lcom/viatech/camera/CreateLiveStreamActivity$13;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->finish()V :try_end_1 .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0 goto/16 :goto_0 .end method