Fix Bug where playing and exiting a video too quickly would cause the video to play in the background

This commit is contained in:
Brahim Hadriche committed 2022-12-01 12:13:38 -05:00
1 parent 953403f952
commit b739742006
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Error dialog for video load fail
- SponsorBlock sections and category info
### Fixed
- Bug where playing and exiting a video too quickly would cause the video to play in the background.
## [0.4.0] - 2022-11-24
### Added
- Play video API
+4 -1
View File
@@ -87,7 +87,10 @@ function StartVideoDetailsTask(videoId as string)
input: {
videoId: videoId
}
}).then(function(task as object)
}).then(function(task as object) as void
if m.videoPlayer.control = "stop"
return
end if
videoId = task.output.videoId
metadata = task.output.metadata
if metadata <> invalid