This commit is contained in:
Brahim Hadriche committed 2024-01-16 11:26:09 -05:00
1 parent 7e5b2246fa
commit ea2be153b0
2 files changed
+12 -3

No files matched your search

@@ -144,13 +144,20 @@ function Close(_unused as dynamic)
m.sponsorBlockTask = invalid
end if
m.top.control = "stop"
m.top.content = invalid
parent = m.top.getParent()
if parent <> invalid
parent.RemoveChild(m.top)
end if
SponsorBlock.RemoveNotifcation(m.notifications)
' Stopping a video is slow and synchronous, and can lead to execution timeout crashes.
try
m.top.control = "stop"
catch error
DialogUtils.ShowDialog(ErrorUtils.Format(error), "Error closing video", true)
end try
m.top.content = invalid
end function
function OnVideoPlayerStateChange() as void