mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
fix(tv-player): remove unused seek live edge functionality and related UI elements
This commit is contained in:
@@ -307,9 +307,6 @@ fun TvPlayerScreen(
|
|||||||
onSeekRelative = { deltaMs ->
|
onSeekRelative = { deltaMs ->
|
||||||
viewModel.seekBy(deltaMs)
|
viewModel.seekBy(deltaMs)
|
||||||
},
|
},
|
||||||
onSeekLiveEdge = {
|
|
||||||
viewModel.seekToLiveEdge()
|
|
||||||
},
|
|
||||||
onSkipSegment = {
|
onSkipSegment = {
|
||||||
viewModel.skipActiveSegment()
|
viewModel.skipActiveSegment()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,10 +16,8 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
|||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.outlined.Forward30
|
|
||||||
import androidx.compose.material.icons.outlined.Pause
|
import androidx.compose.material.icons.outlined.Pause
|
||||||
import androidx.compose.material.icons.outlined.PlayArrow
|
import androidx.compose.material.icons.outlined.PlayArrow
|
||||||
import androidx.compose.material.icons.outlined.Replay10
|
|
||||||
import androidx.compose.material.icons.outlined.SkipNext
|
import androidx.compose.material.icons.outlined.SkipNext
|
||||||
import androidx.compose.material.icons.outlined.SkipPrevious
|
import androidx.compose.material.icons.outlined.SkipPrevious
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
@@ -63,7 +61,6 @@ internal fun TvPlayerControlsOverlay(
|
|||||||
onPlayPause: () -> Unit,
|
onPlayPause: () -> Unit,
|
||||||
onSeek: (Long) -> Unit,
|
onSeek: (Long) -> Unit,
|
||||||
onSeekRelative: (Long) -> Unit,
|
onSeekRelative: (Long) -> Unit,
|
||||||
onSeekLiveEdge: () -> Unit,
|
|
||||||
onSkipSegment: () -> Unit,
|
onSkipSegment: () -> Unit,
|
||||||
onNext: () -> Unit,
|
onNext: () -> Unit,
|
||||||
onPrevious: () -> Unit,
|
onPrevious: () -> Unit,
|
||||||
@@ -109,7 +106,6 @@ internal fun TvPlayerControlsOverlay(
|
|||||||
onPlayPause = onPlayPause,
|
onPlayPause = onPlayPause,
|
||||||
onSeek = onSeek,
|
onSeek = onSeek,
|
||||||
onSeekRelative = onSeekRelative,
|
onSeekRelative = onSeekRelative,
|
||||||
onSeekLiveEdge = onSeekLiveEdge,
|
|
||||||
onSkipSegment = onSkipSegment,
|
onSkipSegment = onSkipSegment,
|
||||||
onNext = onNext,
|
onNext = onNext,
|
||||||
onPrevious = onPrevious,
|
onPrevious = onPrevious,
|
||||||
@@ -172,7 +168,6 @@ private fun TvPlayerBottomSection(
|
|||||||
onPlayPause: () -> Unit,
|
onPlayPause: () -> Unit,
|
||||||
onSeek: (Long) -> Unit,
|
onSeek: (Long) -> Unit,
|
||||||
onSeekRelative: (Long) -> Unit,
|
onSeekRelative: (Long) -> Unit,
|
||||||
onSeekLiveEdge: () -> Unit,
|
|
||||||
onSkipSegment: () -> Unit,
|
onSkipSegment: () -> Unit,
|
||||||
onNext: () -> Unit,
|
onNext: () -> Unit,
|
||||||
onPrevious: () -> Unit,
|
onPrevious: () -> Unit,
|
||||||
@@ -247,13 +242,6 @@ private fun TvPlayerBottomSection(
|
|||||||
size = 56,
|
size = 56,
|
||||||
modifier = expandPlaylistModifier
|
modifier = expandPlaylistModifier
|
||||||
)
|
)
|
||||||
TvIconButton(
|
|
||||||
icon = Icons.Outlined.Replay10,
|
|
||||||
contentDescription = "Seek backward 10 seconds",
|
|
||||||
onClick = { onSeekRelative(-10_000) },
|
|
||||||
size = 56,
|
|
||||||
modifier = expandPlaylistModifier
|
|
||||||
)
|
|
||||||
TvIconButton(
|
TvIconButton(
|
||||||
icon = if (uiState.isPlaying) Icons.Outlined.Pause else Icons.Outlined.PlayArrow,
|
icon = if (uiState.isPlaying) Icons.Outlined.Pause else Icons.Outlined.PlayArrow,
|
||||||
contentDescription = if (uiState.isPlaying) "Pause" else "Play",
|
contentDescription = if (uiState.isPlaying) "Pause" else "Play",
|
||||||
@@ -263,13 +251,6 @@ private fun TvPlayerBottomSection(
|
|||||||
.focusRequester(focusRequester)
|
.focusRequester(focusRequester)
|
||||||
.testTag(TvPlayerPlayPauseButtonTag)
|
.testTag(TvPlayerPlayPauseButtonTag)
|
||||||
)
|
)
|
||||||
TvIconButton(
|
|
||||||
icon = Icons.Outlined.Forward30,
|
|
||||||
contentDescription = "Seek forward 30 seconds",
|
|
||||||
onClick = { onSeekRelative(30_000) },
|
|
||||||
size = 56,
|
|
||||||
modifier = expandPlaylistModifier
|
|
||||||
)
|
|
||||||
TvIconButton(
|
TvIconButton(
|
||||||
icon = Icons.Outlined.SkipNext,
|
icon = Icons.Outlined.SkipNext,
|
||||||
contentDescription = "Next",
|
contentDescription = "Next",
|
||||||
|
|||||||
Reference in New Issue
Block a user