Autoplay next video
This commit is contained in:
1 parent
ed7c5c618b
commit
3bdf2cfb14
2 files changed
+9
-1
No files matched your search
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- The License has changed from MIT to AGPL
|
- 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
|
### Fixed
|
||||||
- Bug where app freezes if metadata fails to fetch
|
- Bug where app freezes if metadata fails to fetch
|
||||||
|
|||||||
@@ -228,7 +228,13 @@ function OnVideoPlayerStateChange() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if state = "finished"
|
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
|
end if
|
||||||
|
|
||||||
if state = "error"
|
if state = "error"
|
||||||
|
|||||||
Reference in new issue
Block a user