ConnectSDK / Connect-SDK-iOS

iOS source project for Connect SDK
Apache License 2.0
166 stars 129 forks source link

Roku: events support #167

Open eunikolsky opened 8 years ago

eunikolsky commented 8 years ago

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.

jamescahall commented 8 years ago

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.

oleksii-frolov commented 8 years ago

@jamescahall Do you know these parameters or a name of that app?

jamescahall commented 8 years ago

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

tmm1 commented 7 years ago

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