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: https://github.com/flutter/flutter/issues/150327
* Fixes: https://github.com/flutter/flutter/issues/64397
* Fixes: https://github.com/flutter/flutter/issues/62192
* Fixes part of: https://github.com/flutter/flutter/issues/88151
* Lands: https://github.com/flutter/packages/pull/3259 (adds missing test)
Co-authored-by: James Leahy <defuncart@gmail.com>