up
This commit is contained in:
@@ -150,6 +150,8 @@ class FeedNotifier extends StateNotifier<FeedState> {
|
||||
|
||||
/// 翻页:滑出即暂停、滑入自动播放并上报观看计费(《01-开发文档》5.3)
|
||||
void onPageChanged(int index) {
|
||||
// 立即静音全部非目标槽位,防止翻页动画期间多个视频同时出声
|
||||
pool.pauseExcept(slotIndex: pool.slotOf(index));
|
||||
state = state.copyWith(currentIndex: index);
|
||||
// fire-and-forget:Future 内部会完整 await bindWindow 再 play,调用方不等
|
||||
_bindAndReport(index);
|
||||
|
||||
Reference in New Issue
Block a user