Skip to content

Commit f363a9c

Browse files
author
archurtan
committed
调整sdk demo适配快速出图sdk
Change-Id: I1bcc1a53830467fc0f708bf7ffeacd4486d3726f
1 parent 2c932ee commit f363a9c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ open class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Su
145145

146146
Thread(Runnable {
147147
var id = "${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}"
148+
connectStartTime = System.currentTimeMillis()
148149
var started = XP2P.startServiceWithXp2pInfo(id,
149150
App.data.accessInfo!!.productId, presenter.getDeviceName(), "")
150151
if (started != 0) {
@@ -159,11 +160,9 @@ open class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Su
159160
}
160161
return@Runnable
161162
}
162-
163-
connectStartTime = System.currentTimeMillis()
164-
var tmpCountDownLatch = CountDownLatch(1)
165-
countDownLatchs.put("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}", tmpCountDownLatch)
166-
tmpCountDownLatch.await()
163+
// var tmpCountDownLatch = CountDownLatch(1)
164+
// countDownLatchs.put("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}", tmpCountDownLatch)
165+
// tmpCountDownLatch.await()
167166

168167
XP2P.delegateHttpFlv("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}")?.let {
169168
urlPrefix = it
@@ -206,10 +205,10 @@ open class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Su
206205
connectStartTime = System.currentTimeMillis()
207206

208207
Log.d(tag, "id=${id}, call startServiceWithXp2pInfo successed")
209-
countDownLatchs.put(id!!, tmpCountDownLatch)
210-
Log.d(tag, "id=${id}, tmpCountDownLatch start wait")
211-
tmpCountDownLatch.await()
212-
Log.d(tag, "id=${id}, tmpCountDownLatch do not wait any more")
208+
// countDownLatchs.put(id!!, tmpCountDownLatch)
209+
// Log.d(tag, "id=${id}, tmpCountDownLatch start wait")
210+
// tmpCountDownLatch.await()
211+
// Log.d(tag, "id=${id}, tmpCountDownLatch do not wait any more")
213212

214213
XP2P.delegateHttpFlv(id)?.let {
215214
urlPrefix = it

0 commit comments

Comments
 (0)