@@ -9,20 +9,27 @@ import com.tencent.iot.explorer.link.core.utils.SharePreferenceUtil
99import com.tencent.iot.explorer.link.demo.App
1010import com.tencent.iot.explorer.link.demo.R
1111import 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
1313import com.tencent.iot.video.link.callback.OnWlanDevicesDetectedCallback
1414import com.tencent.iot.video.link.consts.VideoConst
1515import com.tencent.iot.video.link.entity.DeviceServerInfo
1616import com.tencent.iot.video.link.entity.WlanDetectBody
1717import 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
1921import 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
2734class 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