1
This commit is contained in:
@@ -28,8 +28,9 @@ class _HomeShellState extends ConsumerState<HomeShell> {
|
||||
|
||||
void _onTabSelected(int i) {
|
||||
if (i == _index) return;
|
||||
// 切到非首页:挂起所有 Feed 策略的播放器池(IndexedStack 保活,
|
||||
// suspend 会同时阻止在途 open 完成后自动播放,杜绝后台幽灵声)
|
||||
// 切到非首页:挂起所有 Feed 策略池——suspend 记录断点后 stop 全槽位
|
||||
// (mpv pause 停不住 HLS 预读,只有 stop 能可靠断下载);
|
||||
// 回首页 rebind 重新 open + seek 断点续播,缓存分片零流量(抖音行为)
|
||||
if (i != 0) {
|
||||
for (final s in _feedStrategies) {
|
||||
ref.read(feedProvider(s).notifier).pool.suspend();
|
||||
|
||||
Reference in New Issue
Block a user