Fix loop offline videos, make loop not reload video

This commit is contained in:
Kelvin K 2024-06-13 11:21:48 +02:00
parent 414b6e24d2
commit ff28a07871

View file

@ -1063,6 +1063,11 @@ class VideoDetailView : ConstraintLayout {
if(!bypassSameVideoCheck && this.video?.url == video.url)
return;
//Loop workaround
if(bypassSameVideoCheck && this.video?.url == video.url && StatePlayer.instance.loopVideo) {
_player.seekTo(0);
return;
}
val cachedVideo = StateDownloads.instance.getCachedVideo(video.id);
if(cachedVideo != null) {