Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 58062c1

Browse files
Initial commit
1 parent 0d17f5f commit 58062c1

File tree

23 files changed

+639
-307
lines changed

23 files changed

+639
-307
lines changed

packages/video_player/video_player/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.11.0
2+
3+
* Added option to set the video playback speed on the video controller.
4+
* **Minor breaking change**: fixed `VideoPlayerValue.toString` to insert a comma after `isBuffering`.
5+
16
## 0.10.12+2
27

38
* Fix `setMixWithOthers` test.

packages/video_player/video_player/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,23 @@ class _VideoAppState extends State<VideoApp> {
127127
}
128128
}
129129
```
130+
131+
## Usage
132+
133+
The following section contains usage information that goes beyond what is included in the
134+
documentation in order to give a more elaborate overview of the API.
135+
136+
This is not complete as of now. You can contribute to this section by [opening a pull request](https://github.com/flutter/plugins/pulls).
137+
138+
### Playback speed
139+
140+
You can set the playback speed on your `_controller` (instance of `VideoPlayerController`) by
141+
calling `_controller.setPlaybackSpeed`. `setPlaybackSpeed` takes a `double` speed value indicating
142+
the rate of playback for your video.
143+
For example, when given a value of `2.0`, your video will play at 2x the regular playback speed
144+
and so on.
145+
146+
See the documentation for how different values for the playback speed are handled on the different
147+
platforms.
148+
149+
Furthermore, see the example app to see an example playback speed implementation.

0 commit comments

Comments
 (0)