File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/video_player/video_player_avfoundation/ios/Classes Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,12 @@ - (void)observeValueForKeyPath:(NSString *)path
337
337
}
338
338
}
339
339
} else if (context == playbackBufferEmptyContext) {
340
+ // There's a bug in AVFoundation, KVO for `playbackBufferEmpty` when playing HLS content. The
341
+ // expected behavior of the value change for `playbackBufferEmpty` is not triggered. This
342
+ // issue has been confirmed in iOS 16.5. Refer:
343
+ // https://github.com/flutter/packages/pull/3826#discussion_r1204985454 Fortunately, the KVO
344
+ // for `playbackBufferFull` is working correctly, so the bug won't affect the event passing
345
+ // responsible for `bufferingEnd` or `bufferingStart` events.
340
346
if (_eventSink != nil ) {
341
347
if ([[_player currentItem ] isPlaybackLikelyToKeepUp ]) {
342
348
_eventSink (@{@" event" : @" bufferingEnd" });
You can’t perform that action at this time.
0 commit comments