fix(player): wait for mpv subtitles after load

close #1331
This commit is contained in:
edde746
2026-06-13 23:52:19 +02:00
parent c39b5a5cf1
commit f3cb508649
11 changed files with 235 additions and 56 deletions
+4
View File
@@ -53,6 +53,9 @@ class PlayerStreams {
/// Stream that emits when playback restarts (first frame ready after load/seek).
final Stream<void> playbackRestart;
/// Stream that emits when the player has loaded the current media file.
final Stream<void> fileLoaded;
/// Stream of seekable buffer ranges from the demuxer cache.
final Stream<List<BufferRange>> bufferRanges;
@@ -78,6 +81,7 @@ class PlayerStreams {
required this.audioDevices,
required this.bufferRanges,
required this.playbackRestart,
this.fileLoaded = const Stream<void>.empty(),
required this.backendSwitched,
});
}