Bug fixes

This commit is contained in:
Brahim Hadriche committed 2023-11-13 15:01:31 -05:00
1 parent 3312bbc56e
commit 9e47d4d42e
3 files changed
+32 -7

No files matched your search

@@ -185,8 +185,18 @@ function OnVideoPlayerStateChange() as void
end if
if state = "finished"
if content = invalid
m.container@.watchedVideosClear(invalid)
VideoUtils.CloseVideo()
end if
metadata = content.metadata
if metadata <> invalid and not PlayNext(metadata.recommendedVideos)
if metadata = invalid
m.container@.watchedVideosClear(invalid)
VideoUtils.CloseVideo()
end if
if not PlayNext(metadata.recommendedVideos)
m.container@.watchedVideosClear(invalid)
VideoUtils.CloseVideo()
end if