-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[video_player_avfoundation] fix playback speed resetting #7657
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
Changes from 1 commit
a75e906
9de9700
1916de5
a1e0361
ba86187
0c74a20
7755c4f
e9716fc
785d53a
39a189d
f9121b2
5c105a1
45f49c3
fed2d90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -424,14 +424,15 @@ - (void)updateRate { | |
| // be played at these speeds, updatePlayingState will be called again when | ||
| // status changes to AVPlayerItemStatusReadyToPlay. | ||
| float speed = _playbackSpeed.floatValue; | ||
| bool readyToPlay = _player.currentItem.status == AVPlayerItemStatusReadyToPlay; | ||
|
||
| if (speed > 2.0 && !_player.currentItem.canPlayFastForward) { | ||
| if (_player.currentItem.status != AVPlayerItemStatusReadyToPlay) { | ||
| if (!readyToPlay) { | ||
|
||
| return; | ||
| } | ||
| speed = 2.0; | ||
| } | ||
| if (speed < 1.0 && !_player.currentItem.canPlaySlowForward) { | ||
| if (_player.currentItem.status != AVPlayerItemStatusReadyToPlay) { | ||
| if (!readyToPlay) { | ||
| return; | ||
| } | ||
| speed = 1.0; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.