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.
487 lines
16 KiB
487 lines
16 KiB
.class Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask; |
|
.super Landroid/os/AsyncTask; |
|
.source "CreateLiveStreamActivity.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/camera/CreateLiveStreamActivity; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x2 |
|
name = "UpdateLiveEventTask" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Landroid/os/AsyncTask", |
|
"<", |
|
"Ljava/lang/String;", |
|
"Ljava/lang/String;", |
|
"Ljava/lang/Boolean;", |
|
">;" |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private CHECK_TIMEOUT:J |
|
|
|
.field private broadcastId:Ljava/lang/String; |
|
|
|
.field private mStartTime:J |
|
|
|
.field final synthetic this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
.field private watchUrl:Ljava/lang/String; |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
.locals 3 |
|
|
|
.prologue |
|
const/4 v2, 0x0 |
|
|
|
.line 1062 |
|
iput-object p1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V |
|
|
|
.line 1064 |
|
iput-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->broadcastId:Ljava/lang/String; |
|
|
|
.line 1065 |
|
const-wide/16 v0, 0x0 |
|
|
|
iput-wide v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->mStartTime:J |
|
|
|
.line 1066 |
|
iput-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->watchUrl:Ljava/lang/String; |
|
|
|
.line 1068 |
|
const-wide/32 v0, 0x1d4c0 |
|
|
|
iput-wide v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->CHECK_TIMEOUT:J |
|
|
|
return-void |
|
.end method |
|
|
|
.method synthetic constructor <init>(Lcom/viatech/camera/CreateLiveStreamActivity;Lcom/viatech/camera/CreateLiveStreamActivity$1;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 1062 |
|
invoke-direct {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity;)V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method protected varargs doInBackground([Ljava/lang/String;)Ljava/lang/Boolean; |
|
.locals 6 |
|
|
|
.prologue |
|
const/4 v0, 0x0 |
|
|
|
.line 1083 |
|
aget-object v1, p1, v0 |
|
|
|
iput-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->broadcastId:Ljava/lang/String; |
|
|
|
.line 1087 |
|
:cond_0 |
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J |
|
|
|
move-result-wide v2 |
|
|
|
iget-wide v4, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->mStartTime:J |
|
|
|
sub-long/2addr v2, v4 |
|
|
|
.line 1090 |
|
:try_start_0 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->broadcastId:Ljava/lang/String; |
|
|
|
invoke-static {v1}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->getLiveBroadcastData(Ljava/lang/String;)Lcom/via/vpailib/vpaiinterface/EventData; |
|
|
|
move-result-object v1 |
|
|
|
.line 1091 |
|
if-eqz v1, :cond_2 |
|
|
|
invoke-virtual {v1}, Lcom/via/vpailib/vpaiinterface/EventData;->getLifeStatus()Ljava/lang/String; |
|
|
|
move-result-object v4 |
|
|
|
const-string v5, "live" |
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z |
|
|
|
move-result v4 |
|
|
|
if-eqz v4, :cond_2 |
|
|
|
.line 1092 |
|
invoke-virtual {v1}, Lcom/via/vpailib/vpaiinterface/EventData;->getWatchUri()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
iput-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->watchUrl:Ljava/lang/String; |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 1093 |
|
const/4 v0, 0x1 |
|
|
|
.line 1107 |
|
:cond_1 |
|
:goto_0 |
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
|
|
.line 1102 |
|
:catch_0 |
|
move-exception v1 |
|
|
|
.line 1103 |
|
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V |
|
|
|
.line 1105 |
|
:cond_2 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$900(Lcom/viatech/camera/CreateLiveStreamActivity;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_1 |
|
|
|
iget-wide v4, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->CHECK_TIMEOUT:J |
|
|
|
cmp-long v1, v2, v4 |
|
|
|
if-ltz v1, :cond_0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 1062 |
|
check-cast p1, [Ljava/lang/String; |
|
|
|
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Boolean; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method protected onPostExecute(Ljava/lang/Boolean;)V |
|
.locals 5 |
|
|
|
.prologue |
|
const/4 v2, 0x0 |
|
|
|
const/16 v4, 0x64 |
|
|
|
.line 1112 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 1113 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->broadcastId:Ljava/lang/String; |
|
|
|
invoke-static {v0, v1}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$1002(Lcom/viatech/camera/CreateLiveStreamActivity;Ljava/lang/String;)Ljava/lang/String; |
|
|
|
.line 1115 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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_0 |
|
|
|
.line 1116 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V |
|
|
|
.line 1117 |
|
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView; |
|
|
|
invoke-virtual {v0, v2, v2}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I |
|
|
|
.line 1158 |
|
:goto_0 |
|
return-void |
|
|
|
.line 1121 |
|
:cond_0 |
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 1122 |
|
const v0, 0x7f0700e9 |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 1123 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v0 |
|
|
|
.line 1124 |
|
const-string v1, "broadcast_id" |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 1125 |
|
const-string v1, "broadcast_title" |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 1126 |
|
const-string v1, "broadcast_publish_time" |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 1127 |
|
const-string v1, "broadcast_watch_url" |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->watchUrl:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; |
|
|
|
.line 1128 |
|
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 1129 |
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 1130 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->finish()V |
|
|
|
goto :goto_0 |
|
|
|
.line 1133 |
|
:cond_1 |
|
sget-object v0, Lcom/viatech/camera/CreateLiveStreamActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView; |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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$UpdateLiveEventTask$1; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask$1;-><init>(Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I |
|
|
|
.line 1148 |
|
const v0, 0x7f0700cf |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 1149 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
const v2, 0x7f070163 |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V |
|
|
|
.line 1150 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->hasWindowFocus()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_2 |
|
|
|
.line 1151 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/app/ProgressDialog; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V |
|
|
|
.line 1153 |
|
:cond_2 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$2000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/os/Handler; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, v4}, Landroid/os/Handler;->removeMessages(I)V |
|
|
|
.line 1154 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/CreateLiveStreamActivity;->access$2000(Lcom/viatech/camera/CreateLiveStreamActivity;)Landroid/os/Handler; |
|
|
|
move-result-object v0 |
|
|
|
const-wide/16 v2, 0x7530 |
|
|
|
invoke-virtual {v0, v4, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z |
|
|
|
goto/16 :goto_0 |
|
.end method |
|
|
|
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 1062 |
|
check-cast p1, Ljava/lang/Boolean; |
|
|
|
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->onPostExecute(Ljava/lang/Boolean;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method protected onPreExecute()V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 1072 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->this$0:Lcom/viatech/camera/CreateLiveStreamActivity; |
|
|
|
const v2, 0x7f0700ef |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/camera/CreateLiveStreamActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V |
|
|
|
.line 1073 |
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J |
|
|
|
move-result-wide v0 |
|
|
|
iput-wide v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->mStartTime:J |
|
|
|
.line 1074 |
|
return-void |
|
.end method |
|
|
|
.method protected bridge synthetic onProgressUpdate([Ljava/lang/Object;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 1062 |
|
check-cast p1, [Ljava/lang/String; |
|
|
|
invoke-virtual {p0, p1}, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->onProgressUpdate([Ljava/lang/String;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method protected varargs onProgressUpdate([Ljava/lang/String;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 1078 |
|
iget-object v0, p0, Lcom/viatech/camera/CreateLiveStreamActivity$UpdateLiveEventTask;->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 |
|
|
|
const/4 v1, 0x0 |
|
|
|
aget-object v1, p1, v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V |
|
|
|
.line 1079 |
|
return-void |
|
.end method
|
|
|