feat: Add fillScreen and videoFit to native player options

This commit is contained in:
PartyDonut 2025-10-17 14:07:38 +02:00
parent 63203f39df
commit 318f32c7e6
8 changed files with 148 additions and 23 deletions

View file

@ -20,6 +20,8 @@ class PlayerSettings {
final int skipBackward;
final AutoNextType autoNextType;
final List<PlayerOrientations> acceptedOrientations;
final bool fillScreen;
final VideoPlayerFit videoFit;
const PlayerSettings({
required this.enableTunneling,
@ -29,9 +31,21 @@ class PlayerSettings {
required this.skipBackward,
required this.autoNextType,
required this.acceptedOrientations,
required this.fillScreen,
required this.videoFit,
});
}
enum VideoPlayerFit {
fill,
contain,
cover,
fitWidth,
fitHeight,
none,
scaleDown,
}
enum PlayerOrientations {
portraitUp,
portraitDown,