Fixes to pass certification (#44)
This commit is contained in:
1 parent
d14c729c91
commit
d91411b740
2 files changed
+16
-12
No files matched your search
@@ -29,6 +29,7 @@ function Init()
|
|||||||
|
|
||||||
scene = m.top.getScene()
|
scene = m.top.getScene()
|
||||||
scene.ObserveField("inputArgs", "InputArgumentsReceived")
|
scene.ObserveField("inputArgs", "InputArgumentsReceived")
|
||||||
|
scene.signalBeacon("AppLaunchComplete")
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function InitWebServer()
|
function InitWebServer()
|
||||||
@@ -110,19 +111,10 @@ function InputArgumentsReceived() as void
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function PlayVideoFromArgs(args as object) as void
|
function PlayVideoFromArgs(args as object) as void
|
||||||
if args = invalid
|
if args = invalid or args.contentId = invalid
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
contentId = args.contentId
|
|
||||||
' mediaType is not unused, not putting it here fails validation
|
|
||||||
' bs:disable-next-line
|
|
||||||
mediaType = args.mediaType
|
|
||||||
|
|
||||||
if contentId = invalid
|
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
sender = m.videoContainer.sender ?? m.currentFocued
|
sender = m.videoContainer.sender ?? m.currentFocued
|
||||||
PlayVideo(contentId, { sender: sender })
|
PlayVideo(args.contentId, { sender: sender })
|
||||||
end function
|
end function
|
||||||
@@ -22,11 +22,23 @@ function Main(args as object) as void
|
|||||||
|
|
||||||
scene = screen.CreateScene("BootstrapScene")
|
scene = screen.CreateScene("BootstrapScene")
|
||||||
screen.show()
|
screen.show()
|
||||||
scene.signalBeacon("AppLaunchComplete")
|
|
||||||
|
|
||||||
scene.ObserveField("exitChannel", m.port)
|
scene.ObserveField("exitChannel", m.port)
|
||||||
scene.launchArgs = args
|
scene.launchArgs = args
|
||||||
|
|
||||||
|
' These vars are needed to pass certification.
|
||||||
|
' The actual work is done in Playlet Lib
|
||||||
|
' bs:disable-next-line
|
||||||
|
contentId = args.contentId
|
||||||
|
' bs:disable-next-line
|
||||||
|
mediaType = args.mediaType
|
||||||
|
|
||||||
|
' Do not signal app launch complete here, we're doing it over at Playlet Lib
|
||||||
|
' This is needed to pass cetification
|
||||||
|
if false
|
||||||
|
scene.signalBeacon("AppLaunchComplete")
|
||||||
|
end if
|
||||||
|
|
||||||
input = CreateObject("roInput")
|
input = CreateObject("roInput")
|
||||||
input.setMessagePort(m.port)
|
input.setMessagePort(m.port)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user