Log video player errors
This commit is contained in:
1 parent
6abd18ab85
commit
7818f778ea
1 file changed
+9
-4
@@ -198,10 +198,15 @@ function OnVideoPlayerStateChange() as void
|
|||||||
messageLines.push(`errorStr: ${m.top.errorStr}`)
|
messageLines.push(`errorStr: ${m.top.errorStr}`)
|
||||||
|
|
||||||
errorInfo = m.top.errorInfo
|
errorInfo = m.top.errorInfo
|
||||||
for each info in errorInfo
|
if errorInfo <> invalid
|
||||||
messageLines.push(`${info}: ${errorInfo[info]}`)
|
for each info in errorInfo
|
||||||
end for
|
messageLines.push(`${info}: ${errorInfo[info]}`)
|
||||||
DialogUtils.ShowDialog(messageLines, `Error playing video ${m.top.content.videoId}`, true)
|
end for
|
||||||
|
end if
|
||||||
|
|
||||||
|
title = `Error playing video ${m.top.content.videoId}`
|
||||||
|
LogError(title, messageLines)
|
||||||
|
DialogUtils.ShowDialog(messageLines, title, true)
|
||||||
' TODO:P1 play next video in the queue after showing the error dialog
|
' TODO:P1 play next video in the queue after showing the error dialog
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user