@@ -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