You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[video_player] Platform view support (flutter#8810)
This PR adds support for platform views as on optional way of displaying a video (as an alternative to Flutter's `Texture` widget). Texture-based approach is still the default setting when creating a new player.
Platform interface was updated in flutter#8453
Platform implementations were added in these PRs:
- iOS: flutter#8237
- Android: flutter#8466
Closes [flutter/issues/86613](flutter/flutter#86613).
Copy file name to clipboardExpand all lines: packages/video_player/video_player/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,3 +140,10 @@ and so on.
140
140
To learn about playback speed limitations, see the [`setPlaybackSpeed` method documentation](https://pub.dev/documentation/video_player/latest/video_player/VideoPlayerController/setPlaybackSpeed.html).
141
141
142
142
Furthermore, see the example app for an example playback speed implementation.
143
+
144
+
### Video view type
145
+
146
+
You can set the video view type of your controller (instance of `VideoPlayerController`) during its creation by passing the `videoViewType` argument.
147
+
If set to `VideoViewType.platformView`, platform views will be used instead of texture view on supported platforms.
148
+
149
+
The relative performance of the different view types may vary by platform, and on some platforms the use of platform views may have correctness issues in certain circumstances due to limitations of Flutter's platform view system.
0 commit comments