universal_video_controls_video_player 1.0.1 universal_video_controls_video_player: ^1.0.1 copied to clipboard
Interface for video_player to work with universal_video_controls
universal_video_controls_video_player #
Overview #
The universal_video_controls_video_player
package provides an implementation of the AbstractPlayer
interface using the video_player
package. This allows you to use the universal_video_controls
package with the video_player
package seamlessly.
Getting Started #
Installation #
Add the following dependencies to your pubspec.yaml
file:
dependencies:
universal_video_controls_video_player: ^1.0.1
universal_video_controls: ^1.0.6
video_player: ^2.2.5
Run flutter pub get
to install the packages.
Usage #
To use the universal_video_controls_video_player
package:
- Initialize your
VideoPlayerController
with the desired video source. - Wrap the
VideoPlayerController
withVideoPlayerControlsWrapper
. - Use the
VideoPlayerControlsWrapper
with theVideoControls
widget from theuniversal_video_controls
package.
Key Components #
- VideoPlayerControlsWrapper: A wrapper for the
VideoPlayerController
that implements theAbstractPlayer
interface. This allows theuniversal_video_controls
to control the video player.
Example Setup #
- Create a
VideoPlayerController
with a video source. - Wrap the
VideoPlayerController
withVideoPlayerControlsWrapper
. - Use the
VideoPlayerControlsWrapper
withVideoControls
.
This setup ensures that the universal_video_controls
package can control the video playback using the video_player
package.
Contributing #
We welcome contributions to the universal_video_controls_video_player
project! If you have ideas, suggestions, or improvements, please feel free to submit a pull request or open an issue.
License #
This project is licensed under the MIT License. See the LICENSE file for more details.
Thank you for using universal_video_controls_video_player
!