fix(player): 优化上下滑切集黑屏

This commit is contained in:
Zhou Weidong committed 2026-10-26 13:15:56 +08:00
1 parent b83b5799e3
commit 222bacdeeb
10 files changed
+625 -122

No files matched your search

+3 -2
View File
@@ -594,8 +594,9 @@ void main() {
await _drain(logic);
expect(logic.session.currentIndex, 2);
// The last episode has no successor to warm.
expect(factory.created, hasLength(1));
// 最后一集没有下一集,但仍会预热上一集。
expect(factory.created, hasLength(2));
expect(logic.session.preparedPlayerAt(1), isNotNull);
logic.dispose();
await _drain(logic);