【埋点】视频开始播放事件中上报了观看时长和是否完整播放的属性,这个时候刚开始观看不能上报
This commit is contained in:
parent
93f1cf9921
commit
55c79e7d7e
|
|
@ -189,6 +189,12 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
|
|||
|
||||
private fun sendPlayStopStatistic(isPlayStart: Boolean) {
|
||||
mVideoData?.let {
|
||||
if (isPlayStart) {
|
||||
StatisticUtil.reportEvents(StatisticUtil.KEY_Video_Play_Start,
|
||||
mapOf(
|
||||
"video_id" to it.id
|
||||
))
|
||||
} else {
|
||||
StatisticUtil.reportEvents(if (isPlayStart) StatisticUtil.KEY_Video_Play_Start else StatisticUtil.KEY_Video_Play_End,
|
||||
mapOf(
|
||||
"video_id" to it.id,
|
||||
|
|
@ -197,6 +203,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
|
|||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun togglePlayingState(isPlaying: Boolean) {
|
||||
if (true) togglePlayingState1(isPlaying) else togglePlayingState2(isPlaying)
|
||||
|
|
|
|||
Loading…
Reference in New Issue