Fix Bug where playing and exiting a video too quickly would cause the video to play in the background
This commit is contained in:
1 parent
953403f952
commit
b739742006
2 files changed
+7
-1
No files matched your search
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Error dialog for video load fail
|
- Error dialog for video load fail
|
||||||
- SponsorBlock sections and category info
|
- 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
|
## [0.4.0] - 2022-11-24
|
||||||
### Added
|
### Added
|
||||||
- Play video API
|
- Play video API
|
||||||
|
|||||||
@@ -87,7 +87,10 @@ function StartVideoDetailsTask(videoId as string)
|
|||||||
input: {
|
input: {
|
||||||
videoId: videoId
|
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
|
videoId = task.output.videoId
|
||||||
metadata = task.output.metadata
|
metadata = task.output.metadata
|
||||||
if metadata <> invalid
|
if metadata <> invalid
|
||||||
|
|||||||
Reference in new issue
Block a user