Fix failed to create media player error (#385)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-05-23 13:11:35 -04:00
1 parent 55c811adb7
commit 1acf1da00d
6 files changed
+56 -7

No files matched your search

@@ -59,14 +59,16 @@ function OnVideoContentTaskResults(output as object) as void
end if
error = ErrorUtils.Format(error)
LogError(error)
Close(invalid)
m.top.close = true
return
end if
m.top.control = "play"
end function
function Close(_unused as dynamic)
function OnClose()
m.top.previousPlayer = invalid
if m.videoContentTask <> invalid
m.videoContentTask.cancel = true
m.videoContentTask = invalid