mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-02 22:30:40 +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)
|
if(!bypassSameVideoCheck && this.video?.url == video.url)
|
||||||
return;
|
return;
|
||||||
|
//Loop workaround
|
||||||
|
if(bypassSameVideoCheck && this.video?.url == video.url && StatePlayer.instance.loopVideo) {
|
||||||
|
_player.seekTo(0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
val cachedVideo = StateDownloads.instance.getCachedVideo(video.id);
|
val cachedVideo = StateDownloads.instance.getCachedVideo(video.id);
|
||||||
if(cachedVideo != null) {
|
if(cachedVideo != null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue