MOD: updated defaults to my prefs
This commit is contained in:
parent
5d88c25f97
commit
64eb412a6f
16
README.md
16
README.md
|
|
@ -18,18 +18,7 @@ Add to your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
splash_video: ^0.0.1
|
splash_video: ^0.0.2
|
||||||
media_kit: ^1.2.6
|
|
||||||
media_kit_video: ^2.0.1
|
|
||||||
video_player_media_kit: ^2.0.0
|
|
||||||
|
|
||||||
# Platform-specific video libraries
|
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
|
|
@ -44,9 +33,6 @@ void main() {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
// Required: Initialize media_kit
|
// Required: Initialize media_kit
|
||||||
MediaKit.ensureInitialized();
|
|
||||||
|
|
||||||
// Optional: Defer first frame for smooth transition
|
|
||||||
SplashVideo.initialize();
|
SplashVideo.initialize();
|
||||||
|
|
||||||
runApp(MyApp());
|
runApp(MyApp());
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class VideoConfig {
|
||||||
this.playImmediately = true,
|
this.playImmediately = true,
|
||||||
this.videoVisibilityEnum = VisibilityEnum.useFullScreen,
|
this.videoVisibilityEnum = VisibilityEnum.useFullScreen,
|
||||||
this.useSafeArea = false,
|
this.useSafeArea = false,
|
||||||
this.volume = 100.0,
|
this.volume = 80.0,
|
||||||
this.enableAudio = true,
|
this.enableAudio = true,
|
||||||
this.onPlayerInitialized,
|
this.onPlayerInitialized,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue