修改播放时长问题,首页w2a两次问题。

This commit is contained in:
guozhen 2025-05-15 11:15:23 +08:00
parent 72518e850e
commit 17b6f85f46
2 changed files with 7 additions and 6 deletions

View File

@ -528,7 +528,6 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
String ddl = TIndicator.getString(ITItem.Constants_DeepLinkData_URL, ""); String ddl = TIndicator.getString(ITItem.Constants_DeepLinkData_URL, "");
LogUtils.d("clipString: ddl " + ddl); LogUtils.d("clipString: ddl " + ddl);
if (!ddl.isEmpty()) { if (!ddl.isEmpty()) {
w2aSelfAttribution(ddl);
// 定义正则表达式 // 定义正则表达式
// Pattern pattern = Pattern.compile("short_play_id=(d+).*"); // Pattern pattern = Pattern.compile("short_play_id=(d+).*");
Pattern pattern = Pattern.compile("short_play_id=(\\d+)"); Pattern pattern = Pattern.compile("short_play_id=(\\d+)");
@ -553,6 +552,7 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
if (isRequestNotify) { if (isRequestNotify) {
return; return;
} }
w2aSelfAttribution(ddl);
jumpDetails(); jumpDetails();
} }

View File

@ -657,6 +657,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
} }
if (ITItem.Constants_Google_PLAYER_STATUS_FINISH_DETAIL.equals(event)) { if (ITItem.Constants_Google_PLAYER_STATUS_FINISH_DETAIL.equals(event)) {
LogUtils.d("播放到最后==="); LogUtils.d("播放到最后===");
needRestart = true;
if (viewBinding.viewPagerVtEpisode.getCurrentItem() == vtGooglePlayerAdapter.getItems().size() - 1) { if (viewBinding.viewPagerVtEpisode.getCurrentItem() == vtGooglePlayerAdapter.getItems().size() - 1) {
//播放到最后 //播放到最后
vtViewModel.getDetailsRecommand(); vtViewModel.getDetailsRecommand();
@ -685,7 +686,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
viewBinding.viewPagerVtEpisode.setCurrentItem(nextPosition); viewBinding.viewPagerVtEpisode.setCurrentItem(nextPosition);
} }
} }
needRestart = true;
if (activity_id != 0) { if (activity_id != 0) {
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition - 1); LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition - 1);
if (item != null) { if (item != null) {
@ -772,7 +773,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
if (vtGooglePlayerAdapter != null && !vtGooglePlayerAdapter.getItems().isEmpty()) { if (vtGooglePlayerAdapter != null && !vtGooglePlayerAdapter.getItems().isEmpty()) {
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition); LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition);
if (!item.isIs_lock()) { if (!item.isIs_lock()) {
vtViewModel.uploadHistorySeconds(pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id()); vtViewModel.uploadHistorySeconds(needRestart ? 0 : pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id());
} }
if (shortVideoInfo != null) { if (shortVideoInfo != null) {