mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feat: Add fillScreen and videoFit to native player options
This commit is contained in:
parent
63203f39df
commit
318f32c7e6
8 changed files with 148 additions and 23 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue