modify upload data

This commit is contained in:
lixiaopeng
2020-02-10 21:33:35 +08:00
parent 343d6ebb34
commit a885774acd
137 changed files with 93598 additions and 9 deletions

View File

@@ -476,7 +476,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
gsyVideoOptionBuilder.setUrl(mVideoUrl).setCacheWithPlay(false).setPlayTag(TAG)
.build(simpleCoverVideoPlayer);
simpleCoverVideoPlayer.getStartButton().performClick();
traceVideoPlayStatusData("1");
traceVideoPlayStatusData();
}
}
@@ -668,7 +668,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
gsyVideoOptionBuilder.setUrl(videoUrl).setCacheWithPlay(false).setPlayTag(TAG)
.build(simpleCoverVideoPlayer);
simpleCoverVideoPlayer.getStartButton().performClick();
traceVideoPlayStatusData("2");
traceVideoPlayStatusData();
if (mImageUrl == null) {
return;
@@ -677,15 +677,10 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
/**
* 上传播放
* @param type
* type=1 主动触发播放
*
* type=2 自动播放
*/
private void traceVideoPlayStatusData(String type) {
Map<String, Object> properties = new HashMap<>();
properties.put("type", type);
mAnalytics.track(TanluConstants.CARNET_USER_VIDEO_PLAY, properties);
private void traceVideoPlayStatusData() {
mAnalytics.track(TanluConstants.CARNET_USER_VIDEO_PLAY, null);
}