mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-19 19:14:51 +00:00
Fix loop offline videos, make loop not reload video
This commit is contained in:
parent
414b6e24d2
commit
ff28a07871
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue