I tried
if I put it at the front of the audioplayerevent like this
if type(msg)="roPosterScreenEvent" then
if msg.isscreenclosed() then
audioplayer.stop()
return -2
else if type(msg) = "roAudioPlayerEvent"
blah blah blah it close the screen and say that the user interrup the stream
but here is my thoughts,I need to be able to catch the event that the user has pressed a key.that way I can stop the player
so I tried these events and print them to the console
isButtonPressed()
isRemoteKeyPressed()
isListItemSelected()
and
isListSelected()
the console do not show anything but the remote move as I said the home button works on the remote to put the screen ,just that i cannot catch the events of the left,right and back keys.
here is the last line of the stream
playaudio | msg = start of play | index = 0
Channel: Goaheadmission
O/S : Linux
Home media: MYTHROKUPLAYER With Homerun