Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.6

* Fixes playback speed doesn't get persisted after reinitializing with new VideoPlayerController.

## 2.4.5

* Updates functions without a prototype to avoid deprecation warning.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ - (void)updatePlayingState {
return;
}
if (_isPlaying) {
[_player play];
[_player playImmediatelyAtRate:_player.rate];
} else {
[_player pause];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ void main() {
expect(log.textureMessage?.textureId, 1);
});

test('play with playback speed', () async {
await player.setPlaybackSpeed(1, 2.0);
await player.play(1);
expect(log.playbackSpeedMessage?.speed, 2.0);
});

test('pause', () async {
await player.pause(1);
expect(log.log.last, 'pause');
Expand Down