-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[video_player_android] isBuffering flag always return true after calling seekTo method - fixed #9198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[video_player_android] isBuffering flag always return true after calling seekTo method - fixed #9198
Changes from 3 commits
bf4fd71
e4a5254
9f3bf4a
22b40d2
ca70e19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| ## 2.8.4 | ||
|
|
||
| * Fixes a [bug](https://github.com/flutter/flutter/issues/165149) where the `isBuffering` flag | ||
| always returns true after seeking to any position. | ||
|
|
||
| ## 2.8.3 | ||
|
|
||
| * Changes plugin to use `TextureRegistry.SurfaceProducer.handlesCropAndRotation` to detect | ||
|
|
@@ -110,7 +115,9 @@ | |
|
|
||
| ## 2.7.0 | ||
|
|
||
| * Re-adds [support for Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins). | ||
| * | ||
|
|
||
| Re-adds [support for Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins). | ||
|
|
||
| ## 2.6.0 | ||
|
|
||
|
|
@@ -161,7 +168,8 @@ | |
| ## 2.4.12 | ||
|
|
||
| * Updates compileSdk version to 34. | ||
| * Adds error handling for `BehindLiveWindowException`, which may occur upon live-video playback failure. | ||
| * Adds error handling for `BehindLiveWindowException`, which may occur upon live-video playback | ||
| failure. | ||
|
|
||
| ## 2.4.11 | ||
|
|
||
|
|
@@ -208,7 +216,8 @@ | |
|
|
||
| ## 2.4.1 | ||
|
|
||
| * Changes the severity of `javac` warnings so that they are treated as errors and fixes the violations. | ||
| * Changes the severity of `javac` warnings so that they are treated as errors and fixes the | ||
| violations. | ||
|
|
||
| ## 2.4.0 | ||
|
|
||
|
|
@@ -247,15 +256,17 @@ | |
| ## 2.3.7 | ||
|
|
||
| * Bumps gradle version to 7.2.1. | ||
| * Ignores unnecessary import warnings in preparation for [upcoming Flutter changes](https://github.com/flutter/flutter/pull/106316). | ||
| * Ignores unnecessary import warnings in preparation | ||
| for [upcoming Flutter changes](https://github.com/flutter/flutter/pull/106316). | ||
|
|
||
| ## 2.3.6 | ||
|
|
||
| * Updates references to the obsolete master branch. | ||
|
|
||
| ## 2.3.5 | ||
|
|
||
| * Sets rotationCorrection for videos recorded in landscapeRight (https://github.com/flutter/flutter/issues/60327). | ||
| * Sets rotationCorrection for videos recorded in | ||
| landscapeRight (https://github.com/flutter/flutter/issues/60327). | ||
|
|
||
| ## 2.3.4 | ||
|
|
||
|
|
@@ -264,7 +275,8 @@ | |
| ## 2.3.3 | ||
|
|
||
| * Removes unnecessary imports. | ||
| * Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors | ||
| * Fixes library_private_types_in_public_api, sort_child_properties_last and | ||
| use_key_in_widget_constructors | ||
| lint warnings. | ||
|
|
||
| ## 2.3.2 | ||
|
|
@@ -284,3 +296,4 @@ | |
| ## 2.2.17 | ||
|
|
||
| * Splits from `video_player` as a federated implementation. | ||
| ` | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,11 +70,10 @@ public void onPlaybackStateChanged(final int playbackState) { | |
| events.onBufferingUpdate(exoPlayer.getBufferedPosition()); | ||
| break; | ||
| case Player.STATE_READY: | ||
| if (isInitialized) { | ||
| return; | ||
| if (!isInitialized) { | ||
| isInitialized = true; | ||
| sendInitialized(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This changes in theory seems reasonable to me! Can you please add a test for this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, will add test case. |
||
| } | ||
| isInitialized = true; | ||
| sendInitialized(); | ||
| break; | ||
| case Player.STATE_ENDED: | ||
| events.onCompleted(); | ||
|
|
||
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.
Please undo this change: