Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ fun MediumStateEntity.toVideoState(): VideoState {
position = playbackPosition.takeIf { it != 0L },
audioTrackIndex = audioTrackIndex,
subtitleTrackIndex = subtitleTrackIndex,
playbackSpeed = playbackSpeed,
externalSubs = UriListConverter.fromStringToList(externalSubs),
externalAudio = UriListConverter.fromStringToList(externalAudio),
videoScale = videoScale,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ data class VideoState(
val position: Long?,
val audioTrackIndex: Int?,
val subtitleTrackIndex: Int?,
val playbackSpeed: Float?,
val externalSubs: List<Uri>,
val externalAudio: List<Uri> = emptyList(),
val videoScale: Float,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ class LocalMediaRepository(
mediumStateDao.update(uri) { it.copy(playbackPosition = position) }
}

override suspend fun updateMediumPlaybackSpeed(uri: String, playbackSpeed: Float) {
mediumStateDao.update(uri) { it.copy(playbackSpeed = playbackSpeed) }
}

override suspend fun updateMediumAudioTrack(uri: String, audioTrackIndex: Int) {
mediumStateDao.update(uri) { it.copy(audioTrackIndex = audioTrackIndex) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ interface MediaRepository {
suspend fun clearPlaybackHistory()
suspend fun updateMediumLastPlayedTime(uri: String, lastPlayedTime: Long, duration: Long? = null)
suspend fun updateMediumPosition(uri: String, position: Long)
suspend fun updateMediumPlaybackSpeed(uri: String, playbackSpeed: Float)
suspend fun updateMediumAudioTrack(uri: String, audioTrackIndex: Int)
suspend fun updateMediumSubtitleTrack(uri: String, subtitleTrackIndex: Int)
suspend fun updateMediumZoom(uri: String, zoom: Float)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ class FakeMediaRepository : MediaRepository {
override suspend fun updateMediumPosition(uri: String, position: Long) {
}

override suspend fun updateMediumPlaybackSpeed(uri: String, playbackSpeed: Float) {
}

override suspend fun updateMediumAudioTrack(uri: String, audioTrackIndex: Int) {
}

Expand Down
Loading
Loading