Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Apr 19, 2024
1 parent 181f928 commit 5d96917
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,8 @@ fun PlayerControls(
progressTracker.progress.map { player.getChapterAtPosition(it.inWholeMilliseconds)?.mediaMetadata }
}.collectAsState(initial = player.getChapterAtPosition()?.mediaMetadata)

val mediaMetadata by player.currentMediaMetadataAsState()
val isCurrentItemLive by player.isCurrentMediaItemLiveAsState()
val availableCommand by player.availableCommandsAsState()
val mediaItemFlow = remember(player) {
player.currentMediaItemAsFlow()
}
val mediaItem by mediaItemFlow.collectAsState(initial = player.currentMediaItem)

Box(
modifier = modifier.background(color = backgroundColor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
package ch.srgssr.pillarbox.player

import androidx.media3.common.C
import androidx.media3.common.Format
import androidx.media3.common.MediaItem
import androidx.media3.common.MediaMetadata
Expand Down

0 comments on commit 5d96917

Please sign in to comment.