.class Lcom/viatech/camera/CreateLiveRTMPActivity$5; .super Ljava/lang/Object; .source "CreateLiveRTMPActivity.java" # interfaces .implements Lcom/viatech/camera/CameraControlView$OnLiveStreamStatusCallback; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/camera/CreateLiveRTMPActivity;->doStartLiveStream()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; # direct methods .method constructor (Lcom/viatech/camera/CreateLiveRTMPActivity;)V .locals 0 .prologue .line 207 iput-object p1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onLiveStreamStatusChanged(I)V .locals 5 .prologue const/4 v4, 0x1 .line 210 const-string v0, "Vpai_LiveRTMPActivity" new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "onLiveStreamStatusChanged status: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I .line 211 if-ne p1, v4, :cond_1 .line 212 iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->access$400(Lcom/viatech/camera/CreateLiveRTMPActivity;)Landroid/app/ProgressDialog; move-result-object v0 invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V .line 213 sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; const v2, 0x7f0700e9 invoke-virtual {v1, v2}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getString(I)Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1, v4}, Lcom/viatech/widget/VPaiToast;->show(Ljava/lang/String;I)V .line 214 iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getIntent()Landroid/content/Intent; move-result-object v0 .line 215 const-string v1, "broadcast_id" iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveRTMPActivity;->access$300(Lcom/viatech/camera/CreateLiveRTMPActivity;)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 216 const-string v1, "broadcast_title" iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveRTMPActivity;->access$500(Lcom/viatech/camera/CreateLiveRTMPActivity;)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 217 const-string v1, "broadcast_publish_type" const/4 v2, 0x2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; .line 218 const-string v1, "broadcast_publish_time" iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-static {v2}, Lcom/viatech/camera/CreateLiveRTMPActivity;->access$600(Lcom/viatech/camera/CreateLiveRTMPActivity;)J move-result-wide v2 invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent; .line 220 const-string v1, "broadcast_living" invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; .line 221 iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; const/4 v2, -0x1 invoke-virtual {v1, v2, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->setResult(ILandroid/content/Intent;)V .line 222 iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->finish()V .line 228 :cond_0 :goto_0 return-void .line 223 :cond_1 const/4 v0, 0x3 if-ne p1, v0, :cond_0 .line 224 iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity$5;->this$0:Lcom/viatech/camera/CreateLiveRTMPActivity; invoke-static {v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->access$400(Lcom/viatech/camera/CreateLiveRTMPActivity;)Landroid/app/ProgressDialog; move-result-object v0 invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V .line 225 sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; const v1, 0x7f0700cf invoke-virtual {v0, v1, v4}, Lcom/viatech/widget/VPaiToast;->show(II)V .line 226 sget-object v0, Lcom/viatech/camera/CreateLiveRTMPActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView; const-string v1, "rtmp" const/4 v2, 0x0 invoke-virtual {v0, v1, v2}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I goto :goto_0 .end method