video_player_media_kit 1.0.0 video_player_media_kit: ^1.0.0 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.
package:video_player on macOS | package:video_player on Windows | package:video_player on GNU/Linux |
Installation #
dependencies:
video_player_media_kit: ^1.0.0
# NOTE:
# It is not necessary to select all.
# Select based on your usage:
media_kit_libs_android_audio: any
media_kit_libs_ios_audio: any
media_kit_libs_macos_audio: any
media_kit_libs_windows_audio: 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_audio
iOS: true, // default: false - dependency: media_kit_libs_ios_audio
macOS: true, // default: false - dependency: media_kit_libs_macos_audio
windows: true, // default: false - dependency: media_kit_libs_windows_audio
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.