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

+2
View File
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- The License has changed from MIT to AGPL
- Now videos play the next related/recommended video once finished
- This does not take into account the videos in playlists
### Fixed
- Bug where app freezes if metadata fails to fetch
+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"