-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature|optimize|chore] Support select audio tracks, optimize player…
… UI code; optimize Feed screen tablet layout; reduce useless permissions
- Loading branch information
Showing
32 changed files
with
1,339 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.skyd.anivu.ui.mpv | ||
|
||
import android.net.Uri | ||
import androidx.compose.ui.geometry.Offset | ||
|
||
sealed interface PlayerCommand { | ||
data class SetUri(val uri: Uri) : PlayerCommand | ||
data object Destroy : PlayerCommand | ||
data class Paused(val paused: Boolean) : PlayerCommand | ||
data object GetPaused : PlayerCommand | ||
data object PlayOrPause : PlayerCommand | ||
data class SeekTo(val position: Int) : PlayerCommand | ||
data class Rotate(val rotate: Int) : PlayerCommand | ||
data class Zoom(val zoom: Float) : PlayerCommand | ||
data object GetZoom : PlayerCommand | ||
data class VideoOffset(val offset: Offset) : PlayerCommand | ||
data object GetVideoOffsetX : PlayerCommand | ||
data object GetVideoOffsetY : PlayerCommand | ||
data class SetSpeed(val speed: Float) : PlayerCommand | ||
data object GetSpeed : PlayerCommand | ||
data object LoadAllTracks : PlayerCommand | ||
data object GetSubtitleTrack : PlayerCommand | ||
data class SetSubtitleTrack(val trackId: Int) : PlayerCommand | ||
data object GetAudioTrack : PlayerCommand | ||
data class SetAudioTrack(val trackId: Int) : PlayerCommand | ||
data object Screenshot : PlayerCommand | ||
data class AddSubtitle(val filePath: String) : PlayerCommand | ||
} |
Oops, something went wrong.