Picture in picture (#20)

* Refactor and fix player

* Rename functions, fix video loading indicator

* Hide loading indicator on exit

* Picture in picture, exit dialog, fix spinner

* Set launch and input args

* Deep linking support

* Update changelog

* Support dialog multiline

* Comments and changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-12-02 14:24:07 -05:00
1 parent 68a8d61eb0
commit 6ec392a4fe
13 files changed
+197 -28

No files matched your search

+15 -2
View File
@@ -1,11 +1,16 @@
function main() as void
function main(args as object) as void
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
m.global = screen.getGlobalNode()
screen.CreateScene("MainScene")
scene = screen.CreateScene("MainScene")
screen.show()
scene.ObserveField("exitChannel", m.port)
scene.launchArgs = args
input = CreateObject("roInput")
input.setMessagePort(m.port)
' The following comment is to enable the SceneGraph inspector
' on the VSCode BrightScript plugin.
@@ -20,6 +25,14 @@ function main() as void
if msg.isScreenClosed()
return
end if
else if msgType = "roSGNodeEvent"
field = msg.getField()
data = msg.getData()
if field = "exitChannel" and data = true
END
end if
else if msgType = "roInputEvent"
scene.inputArgs = msg.getInfo()
end if
end while
end function