Roku: events support
eunikolsky opened this issue · comments
Roku's "Play-on-Roku" actually supports events. The h=
parameter in the play video request specifies the server's URL. Here are a couple:
POST /device-info HTTP/1.1
channel-version=2.0.22&country-code=US&display-mode=720p&display-type=HDTV&firmware-build=3491&firmware-version=6.02&locale=en_US&model=3500X&screen-height=720&screen-width=1280&timezone=US%2FPacific
GET /deadman HTTP/1.0
GET /terminated HTTP/1.1
GET /state-change/video/play HTTP/1.1
GET /event/video/started HTTP/1.1
Still need to figure out other events.
The Roku SDK in general does support AAC audio when it is fed the correct parameters. We have an app that is currently streaming AAC audio on Roku devices.
@jamescahall Do you know these parameters or a name of that app?
Our Toon Goggles application has AAC audio support for our TG Radio feature.
You can play AAC audio by passing "aac" for StreamFormat and take the audio file url which could be .aac or .m4a and fake out the player by appending ?aac.mp4 to the URL.
James
Here are the events I've seen:
GET /event/video/started HTTP/1.1
GET /event/video/error HTTP/1.1
GET /state-change/video/play HTTP/1.1
GET /state-change/video/pause HTTP/1.1
GET /state-change/video/stop HTTP/1.1