Maximize video if playing on channel exit

This commit is contained in:
Brahim Hadriche committed 2023-10-27 13:22:06 -04:00
1 parent 53f8535535
commit 97592f9839
2 files changed
+28 -11

No files matched your search

@@ -82,23 +82,35 @@ function onKeyEvent(key as string, press as boolean) as boolean
return false
end if
if key = "options"
VideoUtils.ToggleVideoPictureInPicture()
return true
if VideoUtils.ToggleVideoPictureInPicture()
return true
end if
end if
if key = "play"
VideoUtils.TogglePause()
if VideoUtils.TogglePause()
return true
end if
end if
if key = "pause"
VideoUtils.PauseVideo()
if VideoUtils.PauseVideo()
return true
end if
end if
if key = "playonly"
VideoUtils.ResumeVideo()
if VideoUtils.ResumeVideo()
return true
end if
end if
if key = "back"
if VideoUtils.IsVideoPlayerOpen() and not VideoUtils.IsVideoPlayerFullScreen()
if VideoUtils.ToggleVideoPictureInPicture()
return true
end if
end if
dialog = DialogUtils.ShowDialogButtons("Do you want to exit Playlet?", "Exit", ["Exit", "Cancel"])
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
return true