Created
February 14, 2023 07:55
-
-
Save vighnesh153/e62f52d85c9e605f409aa8523f504176 to your computer and use it in GitHub Desktop.
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
package vighnesh153.androidx.exo_player_prototype | |
import androidx.compose.runtime.Composable | |
import com.google.android.exoplayer2.ExoPlayer | |
interface Subtitle { | |
val languageString: String; | |
// val languageCode: String; | |
} | |
interface PlayerInterface { | |
fun getActiveSubtitle(): String? | |
fun setActiveSubtitle(newSubtitle: String) | |
fun getAllSubtitles(): List<String> | |
} | |
class ExoPlayer: PlayerInterface { | |
override fun getSubtitles(): List<Subtitle> { | |
return exoPlayer.getSubtitles().map { } | |
} | |
} | |
@Composable | |
fun MediaPlayer( | |
playerState: PlayerInterface, | |
) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment