mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
feat: Enable player orientation for native player on phones
This commit is contained in:
parent
08301b9ad8
commit
83c5fafe46
11 changed files with 197 additions and 68 deletions
|
|
@ -19,6 +19,7 @@ class PlayerSettings {
|
|||
final int skipForward;
|
||||
final int skipBackward;
|
||||
final AutoNextType autoNextType;
|
||||
final List<PlayerOrientations> acceptedOrientations;
|
||||
|
||||
const PlayerSettings({
|
||||
required this.enableTunneling,
|
||||
|
|
@ -27,9 +28,17 @@ class PlayerSettings {
|
|||
required this.skipForward,
|
||||
required this.skipBackward,
|
||||
required this.autoNextType,
|
||||
required this.acceptedOrientations,
|
||||
});
|
||||
}
|
||||
|
||||
enum PlayerOrientations {
|
||||
portraitUp,
|
||||
portraitDown,
|
||||
landScapeLeft,
|
||||
landScapeRight,
|
||||
}
|
||||
|
||||
enum AutoNextType {
|
||||
off,
|
||||
static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue