-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[video_player] Add Fullscreen for Web #64397
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
Comments
/cc @ditman |
This feature is not available in any of the platforms, according to this: |
@ditman if I change the parameter to make controls = true fullscreen works great. video_player_web.dart line 157 |
@Bilonik I understand that that can be done, however, the plugin needs to run consistently across all platforms. (Ideally we should think on how to add the full screen feature to all platforms, that's why I linked the global issue) |
This works for web, but not the other platforms, right? |
Any updates? |
This comment was marked as duplicate.
This comment was marked as duplicate.
@ditman I believe this feature should only be available on the web, as developers may want to include custom transitions and animations on other platforms, but that is not possible on the web due to restrictions in browsers like Apple's WebKit. Additionally, the web is currently the only platform where packages built on top of video players cannot utilize the fullscreen functionality, as the VideoElement implementation is hidden. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Exports types `VideoPlayerWebOptions` and `VideoPlayerWebOptionsControls` to customize the `webOptions` field in `VideoPlayerOptions` objects. Forwards `webOptions` to the web implementation. ## Usage Can be used as follows: ```dart _controller = VideoPlayerController.asset( 'assets/Butterfly-209.mp4', videoPlayerOptions: const VideoPlayerOptions( webOptions: VideoPlayerWebOptions( controls: VideoPlayerWebOptionsControls.enabled( allowDownload: false, allowFullscreen: false, allowPlaybackRate: false, allowPictureInPicture: false, ), allowContextMenu: false, allowRemotePlayback: false, ), ), ); ``` <img width="967" alt="Bildschirmfoto 2023-07-06 um 17 04 59" src="https://github.com/flutter/packages/assets/13286425/0fa92713-11cb-4073-86cf-2ea4ba486a6c"> ## Issues * Fixes: flutter/flutter#150327 * Fixes: flutter/flutter#64397 * Fixes: flutter/flutter#62192 * Fixes part of: flutter/flutter#88151 * Lands: flutter/packages#3259 (adds missing test) Co-authored-by: James Leahy <[email protected]>
Add Fullscreen for Web
The text was updated successfully, but these errors were encountered: