|
|
@@ -57,8 +57,6 @@ class LiveBroadcastActivity :
|
|
|
}
|
|
|
//初始化直播
|
|
|
initPlayer()
|
|
|
- //上报直播间心跳
|
|
|
- initTask()
|
|
|
}
|
|
|
|
|
|
@SuppressLint("ClickableViewAccessibility")
|
|
|
@@ -87,6 +85,8 @@ class LiveBroadcastActivity :
|
|
|
val result = mLivePlayer?.startLivePlay(url)
|
|
|
if (result == V2TXLiveCode.V2TXLIVE_OK) {
|
|
|
mPlayFlag = true
|
|
|
+ //上报直播间心跳
|
|
|
+ initTask()
|
|
|
} else {
|
|
|
"播放失败,请重试".toast()
|
|
|
}
|