Skip to content

Commit fdcd1a1

Browse files
committed
打开WlanVideoPreviewActivity
1 parent 990949e commit fdcd1a1

File tree

2 files changed

+458
-441
lines changed

2 files changed

+458
-441
lines changed

sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/VideoWlanDetectActivity.kt

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@ import com.tencent.iot.explorer.link.core.utils.SharePreferenceUtil
99
import com.tencent.iot.explorer.link.demo.App
1010
import com.tencent.iot.explorer.link.demo.R
1111
import com.tencent.iot.explorer.link.demo.VideoBaseActivity
12-
//import com.tencent.iot.explorer.link.demo.video.preview.WlanVideoPreviewActivity
12+
import com.tencent.iot.explorer.link.demo.video.preview.WlanVideoPreviewActivity
1313
import com.tencent.iot.video.link.callback.OnWlanDevicesDetectedCallback
1414
import com.tencent.iot.video.link.consts.VideoConst
1515
import com.tencent.iot.video.link.entity.DeviceServerInfo
1616
import com.tencent.iot.video.link.entity.WlanDetectBody
1717
import com.tencent.iot.video.link.entity.WlanRespBody
18-
import kotlinx.android.synthetic.main.activity_video_detect_devs.*
18+
import kotlinx.android.synthetic.main.activity_video_detect_devs.btn_detect
19+
import kotlinx.android.synthetic.main.activity_video_detect_devs.client_token_layout
20+
import kotlinx.android.synthetic.main.activity_video_detect_devs.devs_lv
1921
import kotlinx.android.synthetic.main.activity_video_detect_devs.product_id_layout
20-
import kotlinx.android.synthetic.main.activity_video_input_authorize.*
21-
import kotlinx.android.synthetic.main.blue_title_layout.*
22-
import kotlinx.android.synthetic.main.fragment_video_device.*
23-
import kotlinx.android.synthetic.main.input_item_layout.view.*
24-
import kotlinx.coroutines.*
25-
import java.util.*
22+
import kotlinx.android.synthetic.main.blue_title_layout.iv_back
23+
import kotlinx.android.synthetic.main.blue_title_layout.tv_title
24+
import kotlinx.android.synthetic.main.input_item_layout.view.ev_content
25+
import kotlinx.android.synthetic.main.input_item_layout.view.iv_more
26+
import kotlinx.android.synthetic.main.input_item_layout.view.tv_tip
27+
import kotlinx.coroutines.CoroutineScope
28+
import kotlinx.coroutines.Dispatchers
29+
import kotlinx.coroutines.MainScope
30+
import kotlinx.coroutines.Runnable
31+
import kotlinx.coroutines.cancel
32+
import kotlinx.coroutines.launch
2633

2734
class VideoWlanDetectActivity : VideoBaseActivity() , CoroutineScope by MainScope() {
2835

@@ -70,11 +77,11 @@ class VideoWlanDetectActivity : VideoBaseActivity() , CoroutineScope by MainScop
7077
App.data.accessInfo = AccessInfo()
7178
App.data.accessInfo?.productId = product_id_layout.ev_content.text.toString()
7279

73-
var dev = DevInfo()
80+
val dev = DevInfo()
7481
dev.DeviceName = datas.get(pos).deviceName
7582
dev.Channel = 0
7683
dev.Status = 1
77-
// WlanVideoPreviewActivity.startPreviewActivity(this@VideoWlanDetectActivity, dev)
84+
WlanVideoPreviewActivity.startPreviewActivity(this@VideoWlanDetectActivity, dev)
7885
}
7986
}
8087

0 commit comments

Comments
 (0)