taylorcw
6 years agoStreaming Star
HDMI-CEC Implimentation
I'd like to impliment an action when a CECStatus event is triggered per: https://developer.roku.com/docs/references/brightscript/events/rocecstatusevent.md
To watch for this event, a message port needs to be opened. How would I you do this?
Here's my main.brs: Would I put it in here?
Thanks
To watch for this event, a message port needs to be opened. How would I you do this?
Here's my main.brs: Would I put it in here?
screen = CreateObject("roSGScreen")
port = CreateObject("roMessagePort")
scene = screen.CreateScene("MainScene")
screen.setMessagePort(port)
screen.show()
while(true)
msg = wait(0, port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end while
Thanks