-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! Please add a CHANGELOG.md
entry and bump the version in pubspec.yaml
.
case 'bufferingStart': | ||
value = value.copyWith( | ||
isBuffering: true, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Here and below: we use trailing commas only when needed. And this statement easily fits on a single line:
value = value.copyWith(isBuffering: true);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah sorry, force of habit. Will remove.
} else if (context == playbackBufferFullContext) { | ||
if (_eventSink != nil) { | ||
_eventSink(@{@"event" : @"bufferingEnd"}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't quite work. Running the example app on my iOS device, the circular progress indicator is activated, but then stays active throughout playback.
I guess if the video fits in the buffer, the playbackBufferFull
property never changes. So we probably have to fire the bufferingEnd
event also on playbackLikelyToKeepUp
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, gonna add that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Published, thanks again! |
Thanks for reviewing 😁 |
I have added property to know whether video player is currently buffering or not. I need this to show
CircularProgressIndicator
if the video is currently buffering. I haven't tested for the IOS because I don't have the devices so if anyone can test it, please do.