Merge pull request #5008 from janisslsm/fix-seekbar

fix: broken offline video duration
This commit is contained in:
Bnyro 2023-10-19 18:39:26 +02:00 committed by GitHub
commit 6f3c7f325a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ class OfflinePlayerActivity : BaseActivity() {
val subtitleSource = SingleSampleMediaSource.Factory(FileDataSource.Factory()) val subtitleSource = SingleSampleMediaSource.Factory(FileDataSource.Factory())
.createMediaSource(subtitle, C.TIME_UNSET) .createMediaSource(subtitle, C.TIME_UNSET)
mediaSource = MergingMediaSource(subtitleSource, mediaSource) mediaSource = MergingMediaSource(mediaSource, subtitleSource)
} }
player.setMediaSource(mediaSource) player.setMediaSource(mediaSource)