Autoplay next video

This commit is contained in:
Brahim Hadriche committed 2022-12-08 18:07:02 -05:00
1 parent ed7c5c618b
commit 3bdf2cfb14
2 files changed
+9 -1

No files matched your search

+7 -1
View File
@@ -228,7 +228,13 @@ function OnVideoPlayerStateChange() as void
end if
if state = "finished"
CloseVideo()
metadata = m.top.content?.metadata
videoId = metadata?.recommendedVideos?[0]?.videoId
if videoId <> invalid
PlayVideo(videoId, invalid)
else
CloseVideo()
end if
end if
if state = "error"