Skip to content

Commit d5e1ff4

Browse files
author
archurtan
committed
调整预览逻辑适配tcp和udp探测
Change-Id: Ib4aa69a5cc5c475080b4c224f68359c2c00dc538
1 parent f08c83e commit d5e1ff4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ open class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Su
163163
// var tmpCountDownLatch = CountDownLatch(1)
164164
// countDownLatchs.put("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}", tmpCountDownLatch)
165165
// tmpCountDownLatch.await()
166+
XP2P.delegateHttpFlv("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}")?.let {
167+
urlPrefix = it
168+
if (!TextUtils.isEmpty(urlPrefix)) {
169+
player?.let {
170+
resetPlayer()
171+
keepPlayerplay("${App.data.accessInfo!!.productId}/${presenter.getDeviceName()}")
172+
}
173+
}
174+
}
166175
}).start()
167176
}
168177

0 commit comments

Comments
 (0)