今奥全景相机
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.

938 lines
27 KiB

.class public Lcom/viatech/camera/CreateLiveRTMPActivity;
.super Landroid/app/Activity;
.source "CreateLiveRTMPActivity.java"
# interfaces
.implements Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "Vpai_LiveRTMPActivity"
.field public static sCameraControlView:Lcom/viatech/camera/CameraControlView;
.field public static sVPaiDevice:Lcom/viatech/device/VPaiDevice;
# instance fields
.field private mBtnResolution:Landroid/widget/ImageView;
.field private mLayoutResolution:Landroid/view/ViewGroup;
.field private mLiveResolutionTxt:Landroid/widget/TextView;
.field private mLiveStreamBroadcastId:Ljava/lang/String;
.field private mLiveStreamBroadcastTitle:Ljava/lang/String;
.field private mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
.field private mLiveStreamScheduledTimeMs:J
.field private mLiveStreamStartBtn:Landroid/widget/Button;
.field private mLiveURL:Ljava/lang/String;
.field private mLiveURLEdit:Landroid/widget/EditText;
.field mResolutionDataList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;",
">;"
}
.end annotation
.end field
.field private mResolutionIndex:I
.field private mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
.field private mSharedPreferences:Landroid/content/SharedPreferences;
.field private mVPaiDevice:Lcom/viatech/device/VPaiDevice;
# direct methods
.method public constructor <init>()V
.locals 2
.prologue
const/4 v1, 0x0
.line 41
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 56
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
.line 59
iput-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastId:Ljava/lang/String;
.line 60
iput-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String;
.line 61
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamScheduledTimeMs:J
return-void
.end method
.method static synthetic access$000(Lcom/viatech/camera/CreateLiveRTMPActivity;)Lcom/viatech/widget/ScaleSeekBar;
.locals 1
.prologue
.line 41
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
return-object v0
.end method
.method static synthetic access$100(Lcom/viatech/camera/CreateLiveRTMPActivity;)Landroid/widget/ImageView;
.locals 1
.prologue
.line 41
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mBtnResolution:Landroid/widget/ImageView;
return-object v0
.end method
.method static synthetic access$200(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
.locals 0
.prologue
.line 41
invoke-direct {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->doStartLiveStream()V
return-void
.end method
.method static synthetic access$300(Lcom/viatech/camera/CreateLiveRTMPActivity;)Ljava/lang/String;
.locals 1
.prologue
.line 41
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastId:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$400(Lcom/viatech/camera/CreateLiveRTMPActivity;)Landroid/app/ProgressDialog;
.locals 1
.prologue
.line 41
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
return-object v0
.end method
.method static synthetic access$500(Lcom/viatech/camera/CreateLiveRTMPActivity;)Ljava/lang/String;
.locals 1
.prologue
.line 41
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$600(Lcom/viatech/camera/CreateLiveRTMPActivity;)J
.locals 2
.prologue
.line 41
iget-wide v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamScheduledTimeMs:J
return-wide v0
.end method
.method private doStartLiveStream()V
.locals 9
.prologue
const/4 v3, 0x0
.line 185
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURLEdit:Landroid/widget/EditText;
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
.line 186
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
.line 254
:goto_0
return-void
.line 190
:cond_0
new-instance v0, Lcom/viatech/camera/CreateLiveRTMPActivity$4;
invoke-direct {v0, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$4;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->runOnUiThread(Ljava/lang/Runnable;)V
.line 199
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSharedPreferences:Landroid/content/SharedPreferences;
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
.line 200
const-string v2, "sp_key_rtmp_url"
invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
.line 201
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
.line 204
sget-object v0, Lcom/viatech/camera/CreateLiveRTMPActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
invoke-virtual {v0, v3, v3}, Lcom/viatech/camera/CameraControlView;->stopLiveStream(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I
.line 207
sget-object v0, Lcom/viatech/camera/CreateLiveRTMPActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
new-instance v2, Lcom/viatech/camera/CreateLiveRTMPActivity$5;
invoke-direct {v2, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$5;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual {v0, v2}, Lcom/viatech/camera/CameraControlView;->setOnLiveStreamStatusCallback(Lcom/viatech/camera/CameraControlView$OnLiveStreamStatusCallback;)V
.line 232
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
iget v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
move-object v4, v0
check-cast v4, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
.line 233
iput-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastTitle:Ljava/lang/String;
.line 234
const-string v0, "RTMP_LIVE"
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastId:Ljava/lang/String;
.line 235
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
iput-wide v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamScheduledTimeMs:J
.line 236
sget-object v0, Lcom/viatech/camera/CreateLiveRTMPActivity;->sCameraControlView:Lcom/viatech/camera/CameraControlView;
iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamBroadcastId:Ljava/lang/String;
iget v3, v4, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;->width:I
iget v4, v4, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;->height:I
const-string v5, "RTMP"
iget-wide v6, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamScheduledTimeMs:J
new-instance v8, Lcom/viatech/camera/CreateLiveRTMPActivity$6;
invoke-direct {v8, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$6;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual/range {v0 .. v8}, Lcom/viatech/camera/CameraControlView;->startLiveStream(Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;JLcom/viatech/device/DeviceMessage$DeviceMessageCallback;)I
goto :goto_0
.end method
.method private setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V
.locals 7
.prologue
const/4 v6, 0x0
const/4 v5, -0x2
const/4 v4, 0x1
.line 166
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 167
if-eqz v0, :cond_1
.line 168
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V
.line 169
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x12
if-lt v1, v2, :cond_0
.line 170
invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V
.line 171
:cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 172
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V
.line 173
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V
.line 174
new-instance v1, Landroid/widget/TextView;
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 175
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 176
const/4 v2, -0x1
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
.line 177
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f0800c0
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F
move-result v2
invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 178
new-instance v2, Landroid/app/ActionBar$LayoutParams;
const/16 v3, 0x11
invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V
invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V
.line 180
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V
.line 182
:cond_1
return-void
.end method
# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
.locals 0
.prologue
.line 145
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
.line 146
return-void
.end method
.method public onBackPressed()V
.locals 3
.prologue
.line 159
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getIntent()Landroid/content/Intent;
move-result-object v0
.line 160
const-string v1, "broadcast_living"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
.line 161
const/4 v1, -0x1
invoke-virtual {p0, v1, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->setResult(ILandroid/content/Intent;)V
.line 162
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->finish()V
.line 163
return-void
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 10
.prologue
const/4 v7, 0x1
const/4 v6, 0x0
const/4 v9, 0x0
const/16 v5, 0x2d0
.line 66
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 67
const v0, 0x7f030026
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->setContentView(I)V
.line 68
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V
.line 69
const v0, 0x7f0700e2
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getString(I)Ljava/lang/String;
move-result-object v0
const v1, 0x7f020081
invoke-direct {p0, v0, v1}, Lcom/viatech/camera/CreateLiveRTMPActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V
.line 70
sget-object v0, Lcom/viatech/camera/CreateLiveRTMPActivity;->sVPaiDevice:Lcom/viatech/device/VPaiDevice;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
.line 71
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSharedPreferences:Landroid/content/SharedPreferences;
.line 72
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSharedPreferences:Landroid/content/SharedPreferences;
const-string v1, "sp_key_rtmp_url"
const-string v2, ""
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURL:Ljava/lang/String;
.line 73
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSharedPreferences:Landroid/content/SharedPreferences;
const-string v1, "sp_key_rtmp_resolution"
invoke-interface {v0, v1, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result v0
.line 74
if-ne v0, v5, :cond_1
move v0, v6
:goto_0
iput v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
.line 76
const v0, 0x7f0c00ba
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/EditText;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURLEdit:Landroid/widget/EditText;
.line 77
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURL:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_0
.line 78
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURLEdit:Landroid/widget/EditText;
iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURL:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
.line 79
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURLEdit:Landroid/widget/EditText;
iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveURL:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V
.line 82
:cond_0
const v0, 0x7f0c00bf
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/viatech/widget/ScaleSeekBar;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
.line 83
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
invoke-virtual {v0, p0}, Lcom/viatech/widget/ScaleSeekBar;->setResponseOnTouch(Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch;)V
.line 84
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 85
invoke-virtual {v0, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 86
const-string v1, "720P"
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 87
const-string v1, "1080P"
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 88
invoke-virtual {v0, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 89
iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
invoke-virtual {v1, v0}, Lcom/viatech/widget/ScaleSeekBar;->initData(Ljava/util/ArrayList;)V
.line 90
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
iget v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
add-int/lit8 v1, v1, 0x1
invoke-virtual {v0, v1}, Lcom/viatech/widget/ScaleSeekBar;->setProgress(I)V
.line 92
const v0, 0x7f0c00bd
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveResolutionTxt:Landroid/widget/TextView;
.line 97
iget-object v8, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
new-instance v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
const-string v2, "720p"
const-string v3, "720p"
const/16 v4, 0x5a0
move-object v1, p0
invoke-direct/range {v0 .. v5}, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;Ljava/lang/String;Ljava/lang/String;II)V
invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 98
iget-object v8, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
new-instance v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
const-string v2, "1080p"
const-string v3, "1080p"
const/16 v4, 0x780
const/16 v5, 0x3c0
move-object v1, p0
invoke-direct/range {v0 .. v5}, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;Ljava/lang/String;Ljava/lang/String;II)V
invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 100
iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveResolutionTxt:Landroid/widget/TextView;
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
iget v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
iget-object v0, v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;->description:Ljava/lang/String;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 102
const v0, 0x7f0c00be
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mBtnResolution:Landroid/widget/ImageView;
.line 103
const v0, 0x7f0c00bc
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLayoutResolution:Landroid/view/ViewGroup;
.line 104
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLayoutResolution:Landroid/view/ViewGroup;
new-instance v1, Lcom/viatech/camera/CreateLiveRTMPActivity$1;
invoke-direct {v1, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$1;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 117
const v0, 0x7f0c00c0
invoke-virtual {p0, v0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamStartBtn:Landroid/widget/Button;
.line 118
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamStartBtn:Landroid/widget/Button;
new-instance v1, Lcom/viatech/camera/CreateLiveRTMPActivity$2;
invoke-direct {v1, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$2;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 125
new-instance v0, Landroid/app/ProgressDialog;
invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
.line 126
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
invoke-virtual {v0, v7}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V
.line 127
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
invoke-virtual {v0, v9}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V
.line 128
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
invoke-virtual {v0, v6}, Landroid/app/ProgressDialog;->setCancelable(Z)V
.line 129
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveStreamProgressDialog:Landroid/app/ProgressDialog;
const/4 v1, -0x1
const v2, 0x7f07005c
invoke-virtual {p0, v2}, Lcom/viatech/camera/CreateLiveRTMPActivity;->getString(I)Ljava/lang/String;
move-result-object v2
new-instance v3, Lcom/viatech/camera/CreateLiveRTMPActivity$3;
invoke-direct {v3, p0}, Lcom/viatech/camera/CreateLiveRTMPActivity$3;-><init>(Lcom/viatech/camera/CreateLiveRTMPActivity;)V
invoke-virtual {v0, v1, v2, v3}, Landroid/app/ProgressDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V
.line 141
return-void
:cond_1
move v0, v7
.line 74
goto/16 :goto_0
.end method
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
.locals 2
.prologue
.line 150
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
move-result v0
const v1, 0x102002c
if-ne v0, v1, :cond_0
.line 151
invoke-virtual {p0}, Lcom/viatech/camera/CreateLiveRTMPActivity;->onBackPressed()V
.line 153
:cond_0
const/4 v0, 0x1
return v0
.end method
.method public onTouchResponse(I)V
.locals 4
.prologue
const/4 v0, 0x0
const/4 v1, 0x1
.line 258
iget v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
.line 260
if-nez p1, :cond_2
.line 262
iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
invoke-virtual {v2, v1}, Lcom/viatech/widget/ScaleSeekBar;->setProgress(I)V
.line 273
:cond_0
:goto_0
const-string v1, "Vpai_LiveRTMPActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "## onTouchResponse, val: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, ", index:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget v3, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, " >> "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 274
iget v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
if-eq v0, v1, :cond_1
.line 275
iput v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
.line 276
iget-object v1, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mLiveResolutionTxt:Landroid/widget/TextView;
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionDataList:Ljava/util/List;
iget v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;
iget-object v0, v0, Lcom/viatech/camera/CreateLiveRTMPActivity$TextField;->description:Ljava/lang/String;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 277
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSharedPreferences:Landroid/content/SharedPreferences;
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v1
.line 278
const-string v2, "sp_key_rtmp_resolution"
iget v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mResolutionIndex:I
if-nez v0, :cond_4
const/16 v0, 0x2d0
:goto_1
invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
.line 279
invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z
.line 281
:cond_1
return-void
.line 263
:cond_2
iget-object v3, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
invoke-virtual {v3}, Lcom/viatech/widget/ScaleSeekBar;->getMaxProgress()I
move-result v3
if-ne p1, v3, :cond_3
.line 265
iget-object v0, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
iget-object v2, p0, Lcom/viatech/camera/CreateLiveRTMPActivity;->mSeekBar:Lcom/viatech/widget/ScaleSeekBar;
invoke-virtual {v2}, Lcom/viatech/widget/ScaleSeekBar;->getMaxProgress()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-virtual {v0, v2}, Lcom/viatech/widget/ScaleSeekBar;->setProgress(I)V
move v0, v1
goto :goto_0
.line 267
:cond_3
if-eq p1, v1, :cond_0
.line 269
const/4 v0, 0x2
if-ne p1, v0, :cond_5
move v0, v1
.line 270
goto :goto_0
.line 278
:cond_4
const/16 v0, 0x438
goto :goto_1
:cond_5
move v0, v2
goto :goto_0
.end method