mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #5008 from janisslsm/fix-seekbar
fix: broken offline video duration
This commit is contained in:
commit
6f3c7f325a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user