Uh oh!
There was an error while loading. Please reload this page.
[video_player_android] Platform view support - #8466
Conversation
1bd40ac to
773cfc1Compare
matanlurey
left a comment
There was a problem hiding this comment.
Mostly LG.
Holding off on approval so @camsim99 can also take a look. Thanks for addressing the comments!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
camsim99
left a comment
There was a problem hiding this comment.
The other changes look reasonable to me, thanks!!
FirentisTFW
commented
Mar 4, 2025
@stuartmorgan@camsim99@matanlurey Thanks for the review! I did some lasts manual tests on a couple of devices and everything seems to be working fine. I'll go ahead and merge this one. |
flutter/packages@9e4684e...abba683 2025-03-05 robert.odrowaz@leancode.pl [camera_avfoundation] Tests backfilling - part 1 (flutter/packages#8698) 2025-03-04 57854043+CaoGiaHieu-dev@users.noreply.github.com [go_router_builder]: Fix `The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' ` on path and query params (flutter/packages#8737) 2025-03-04 pawel.jakubowski@leancode.pl [video_player_android] Platform view support (flutter/packages#8466) 2025-03-04 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes crash with nil `WKFrameInfo.request` (flutter/packages#8766) 2025-03-03 engine-flutter-autoroll@skia.org Manual roll Flutter from 842db35 to 04d3934 (4 revisions) (flutter/packages#8775) 2025-03-03 engine-flutter-autoroll@skia.org Roll Flutter from 842db35 to 04d3934 (4 revisions) (flutter/packages#8774) 2025-03-03 reidbaker@google.com [flutter_plugin_android_lifecycle] Uses flutter.compileSdkVersion, bumps minimum flutter version to 3.27 (flutter/packages#8760) 2025-03-03 neilself@gmail.com [google_sign_in] Add Android account name field as optional (platform interface changes) (flutter/packages#8735) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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 #8453 Platform implementations were added in these PRs: - iOS: #8237 - Android: #8466 Closes [flutter/issues/86613](flutter/flutter#86613).
This PR adds support for platform views on Android as a way of displaying a video. When creating a video, it's now possible to choose between texture view approach (rendered using `Texture` widget on the Flutter side) and platform view approach (rendered on the native side, using `SurfaceView`). `VideoPlayer` class now has nothing to do with texture. The texture-related code was moved from it to `TextureVideoPlayer` - a subclass of `VideoPlayer` that adds texture functionality. There's also `PlatformViewVideoPlayer` - a subclass of `VideoPlayer` that adds platform view functionality. In the plugin class (`create` method) we create either the platform view version or the texture version based on the parameter (`viewType`) passed in from Flutter side. The functionality is not yet exposed in the app-facing package (only in the example app) - it will be done in a separate PR. The PR does not introduce breaking changes. Related issues: - [#86613](flutter/flutter#86613) - this issue requests platform view support for iOS. Here we also add it for the Android, so that it works on both mobile platforms.
This PR adds support for platform views on Android as a way of displaying a video. When creating a video, it's now possible to choose between texture view approach (rendered using `Texture` widget on the Flutter side) and platform view approach (rendered on the native side, using `SurfaceView`). `VideoPlayer` class now has nothing to do with texture. The texture-related code was moved from it to `TextureVideoPlayer` - a subclass of `VideoPlayer` that adds texture functionality. There's also `PlatformViewVideoPlayer` - a subclass of `VideoPlayer` that adds platform view functionality. In the plugin class (`create` method) we create either the platform view version or the texture version based on the parameter (`viewType`) passed in from Flutter side. The functionality is not yet exposed in the app-facing package (only in the example app) - it will be done in a separate PR. The PR does not introduce breaking changes. Related issues: - [#86613](flutter/flutter#86613) - this issue requests platform view support for iOS. Here we also add it for the Android, so that it works on both mobile platforms.
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).
This PR adds support for platform views on Android as a way of displaying a video. When creating a video, it's now possible to choose between texture view approach (rendered using `Texture` widget on the Flutter side) and platform view approach (rendered on the native side, using `SurfaceView`). `VideoPlayer` class now has nothing to do with texture. The texture-related code was moved from it to `TextureVideoPlayer` - a subclass of `VideoPlayer` that adds texture functionality. There's also `PlatformViewVideoPlayer` - a subclass of `VideoPlayer` that adds platform view functionality. In the plugin class (`create` method) we create either the platform view version or the texture version based on the parameter (`viewType`) passed in from Flutter side. The functionality is not yet exposed in the app-facing package (only in the example app) - it will be done in a separate PR. The PR does not introduce breaking changes. Related issues: - [#86613](flutter/flutter#86613) - this issue requests platform view support for iOS. Here we also add it for the Android, so that it works on both mobile platforms.
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).
This PR adds support for platform views on Android as a way of displaying a video. When creating a video, it's now possible to choose between texture view approach (rendered using `Texture` widget on the Flutter side) and platform view approach (rendered on the native side, using `SurfaceView`). `VideoPlayer` class now has nothing to do with texture. The texture-related code was moved from it to `TextureVideoPlayer` - a subclass of `VideoPlayer` that adds texture functionality. There's also `PlatformViewVideoPlayer` - a subclass of `VideoPlayer` that adds platform view functionality. In the plugin class (`create` method) we create either the platform view version or the texture version based on the parameter (`viewType`) passed in from Flutter side. The functionality is not yet exposed in the app-facing package (only in the example app) - it will be done in a separate PR. The PR does not introduce breaking changes. Related issues: - [#86613](flutter/flutter#86613) - this issue requests platform view support for iOS. Here we also add it for the Android, so that it works on both mobile platforms.
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).
This PR adds support for platform views on Android as a way of displaying a video. When creating a video, it's now possible to choose between texture view approach (rendered using
Texturewidget on the Flutter side) and platform view approach (rendered on the native side, usingSurfaceView).VideoPlayerclass now has nothing to do with texture. The texture-related code was moved from it toTextureVideoPlayer- a subclass ofVideoPlayerthat adds texture functionality. There's alsoPlatformViewVideoPlayer- a subclass ofVideoPlayerthat adds platform view functionality. In the plugin class (createmethod) we create either the platform view version or the texture version based on the parameter (viewType) passed in from Flutter side.The functionality is not yet exposed in the app-facing package (only in the example app) - it will be done in a separate PR. The PR does not introduce breaking changes.
Related issues:
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.