Skip to content

Instantly share code, notes, and snippets.

@vighnesh153
Created February 14, 2023 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vighnesh153/e62f52d85c9e605f409aa8523f504176 to your computer and use it in GitHub Desktop.
Save vighnesh153/e62f52d85c9e605f409aa8523f504176 to your computer and use it in GitHub Desktop.
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