Autoplay next video
This commit is contained in:
1 parent
ed7c5c618b
commit
3bdf2cfb14
2 files changed
+9
-1
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user