video_player_media_kit 1.0.4 video_player_media_kit: ^1.0.4 copied to clipboard
package:video_player support for all platforms, based on package:media_kit.
package:video_player_media_kit #
package:video_player support for all platforms, based on package:media_kit.
After a single line initialization, you can normally use package:video_player & enjoy:
- Support for all platforms i.e Android, iOS, macOS, Windows, GNU/Linux & web.
- Support for more video/audio formats & codecs.
- ...
package:video_player_media_kit allows package:video_player to use package:media_kit as a backend.
video_player on macOS | video_player on Windows | video_player on GNU/Linux |
Installation #
dependencies:
video_player_media_kit: ^1.0.3
# NOTE:
# It is not necessary to select all.
# Select based on your usage:
media_kit_libs_android_video: any
media_kit_libs_ios_video: any
media_kit_libs_macos_video: any
media_kit_libs_windows_video: any
media_kit_libs_linux: any
TL;DR #
A quick usage example.
void main() {
VideoPlayerMediaKit.ensureInitialized(
android: true, // default: false - dependency: media_kit_libs_android_video
iOS: true, // default: false - dependency: media_kit_libs_ios_video
macOS: true, // default: false - dependency: media_kit_libs_macos_video
windows: true, // default: false - dependency: media_kit_libs_windows_video
linux: true, // default: false - dependency: media_kit_libs_linux
);
// USE package:video_player NORMALLY!
runApp(MyApp());
}
Notes:
- The corresponding
media_kit_libs_***
package for a platform must be added if enabled inVideoPlayerMediaKit.ensureInitialized
.
License #
Copyright © 2023 & onwards, Abdelaziz Mahdy abdelaziz.h.mahdy@gmail.com
This project & the work under this repository is governed by MIT license that can be found in the LICENSE file.