Merge pull request #1284 from 1hitsong/globalQueueInputEvent
Convert input event to global queue
This commit is contained in:
commit
160c562551
|
@ -634,18 +634,14 @@ sub Main (args as dynamic) as void
|
||||||
if msg.IsInput()
|
if msg.IsInput()
|
||||||
info = msg.GetInfo()
|
info = msg.GetInfo()
|
||||||
if info.DoesExist("mediatype") and info.DoesExist("contentid")
|
if info.DoesExist("mediatype") and info.DoesExist("contentid")
|
||||||
video = CreateVideoPlayerGroup(info.contentId)
|
inputEventVideo = {
|
||||||
if video <> invalid
|
id: info.contentId,
|
||||||
sceneManager.callFunc("pushScene", video)
|
type: "video"
|
||||||
else
|
}
|
||||||
dialog = createObject("roSGNode", "Dialog")
|
|
||||||
dialog.id = "OKDialog"
|
m.global.queueManager.callFunc("clear")
|
||||||
dialog.title = tr("Not found")
|
m.global.queueManager.callFunc("push", inputEventVideo)
|
||||||
dialog.message = tr("The requested content does not exist on the server")
|
m.global.queueManager.callFunc("playQueue")
|
||||||
dialog.buttons = [tr("OK")]
|
|
||||||
m.scene.dialog = dialog
|
|
||||||
m.scene.dialog.observeField("buttonSelected", m.port)
|
|
||||||
end if
|
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
else if isNodeEvent(msg, "dataReturned")
|
else if isNodeEvent(msg, "dataReturned")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user