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

+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