Skip to content

Commit

Permalink
Use texture instead of Surface
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Oct 9, 2024
1 parent 330badd commit b8df2e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import ch.srgssr.pillarbox.player.currentPositionAsFlow
import ch.srgssr.pillarbox.player.playbackStateAsFlow
import ch.srgssr.pillarbox.ui.ScaleMode
import ch.srgssr.pillarbox.ui.widget.player.PlayerSurface
import ch.srgssr.pillarbox.ui.widget.player.SurfaceType
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.map
import kotlin.time.Duration.Companion.milliseconds
Expand Down Expand Up @@ -86,6 +87,7 @@ fun OptimizedStory(storyViewModel: StoryViewModel = viewModel()) {
PlayerSurface(
modifier = Modifier.fillMaxHeight(),
scaleMode = ScaleMode.Crop,
surfaceType = SurfaceType.Texture,
player = player,
defaultAspectRatio = 9 / 16f,
)
Expand Down

0 comments on commit b8df2e4

Please sign in to comment.