Close dialog on play state success (#821)
This commit is contained in:
1 parent
2d9f3abe5d
commit
f5be0e5842
2 files changed
+13
No files matched your search
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Error dialog doesn't close automatically when playback recovers after an error
|
||||||
- All audio track names are shown as "Other" in multi audio track videos
|
- All audio track names are shown as "Other" in multi audio track videos
|
||||||
|
|
||||||
## [0.44.5] - 2026-01-17
|
## [0.44.5] - 2026-01-17
|
||||||
|
|||||||
@@ -329,6 +329,9 @@ function OnVideoContentJobErrorDialogResponse(event as object)
|
|||||||
shouldPlayNext = false
|
shouldPlayNext = false
|
||||||
if event <> invalid
|
if event <> invalid
|
||||||
dialog = event.getRoSGNode()
|
dialog = event.getRoSGNode()
|
||||||
|
if m.errorDialog <> invalid and dialog.isSameNode(m.errorDialog)
|
||||||
|
m.errorDialog = invalid
|
||||||
|
end if
|
||||||
dialog.unobserveFieldScoped("wasClosed")
|
dialog.unobserveFieldScoped("wasClosed")
|
||||||
shouldPlayNext = dialog.actualButtonSelected = 0
|
shouldPlayNext = dialog.actualButtonSelected = 0
|
||||||
end if
|
end if
|
||||||
@@ -444,6 +447,14 @@ function OnVideoPlayerStateChange() as void
|
|||||||
' Reset isSeekingPosition when started to play the video
|
' Reset isSeekingPosition when started to play the video
|
||||||
if state = "playing"
|
if state = "playing"
|
||||||
m.isSeekingPosition = false
|
m.isSeekingPosition = false
|
||||||
|
|
||||||
|
' If we somehow was able to recover playback after an error dialog, close the dialog
|
||||||
|
errorDialog = m.errorDialog
|
||||||
|
if errorDialog <> invalid
|
||||||
|
m.errorDialog = invalid
|
||||||
|
errorDialog.unobserveFieldScoped("wasClosed")
|
||||||
|
errorDialog.close = true
|
||||||
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
' If we successfully played the video, then any error that comes later is not due to a 403 (FORBIDDEN).
|
' If we successfully played the video, then any error that comes later is not due to a 403 (FORBIDDEN).
|
||||||
@@ -520,6 +531,7 @@ function OnVideoPlayerStateChange() as void
|
|||||||
|
|
||||||
dialog = DialogUtils.ShowTimedDialogButtons(errorData.body, errorData.title, buttons, 0, 10, true)
|
dialog = DialogUtils.ShowTimedDialogButtons(errorData.body, errorData.title, buttons, 0, 10, true)
|
||||||
if dialog <> invalid
|
if dialog <> invalid
|
||||||
|
m.errorDialog = dialog
|
||||||
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentJobErrorDialogResponse))
|
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentJobErrorDialogResponse))
|
||||||
else
|
else
|
||||||
OnVideoContentJobErrorDialogResponse(invalid)
|
OnVideoContentJobErrorDialogResponse(invalid)
|
||||||
|
|||||||
Reference in new issue
Block a user