feat: Enable player orientation for native player on phones

This commit is contained in:
PartyDonut 2025-10-17 13:05:51 +02:00
parent 08301b9ad8
commit 83c5fafe46
11 changed files with 197 additions and 68 deletions

View file

@ -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,