Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
derekctv
Visitor

Amazon S3

Hi,

I am struggling with Amazon at a very basic level. I am moving away from a streaming platform and storing my vidoes in Amazon S3. I have created muliple renditions for adaptive streaming purposes, and each video has a logical file naming convention where elements of the file name is common for all renditions but each fille is made unique by carrying a bit rate number extension. My query is: Can I store all of these files in one S3 bucket and if so how does Roku make the call for the appropriate rtendition, or is there a particular way videos need to be referenced in an Amazon S3 bucket? Or perhaps I have just missed a major Roku Dev process somewhere along the line?
0 Kudos
2 REPLIES 2
destruk
Streaming Star

Re: Amazon S3

Sure you can put all the files into the same bucket and even the same folder in your bucket if you like.

From the docs -
StreamBitrates - roArray
Array of bitrates in kbps for content streams
[384, 500, 1000, 1500]

StreamUrls - roArray
Array of URL's for content streams
["http://www.myco.com/vid/1932-1.mp4",
"http://www.myco.com/vid/1932-2.mp4",
"http://www.myco.com/vid/1932-3.mp4",
"http://www.myco.com/vid/1932-4.mp4"]

StreamQualities - roArray
Array of Strings quality indicators identifying a stream as "SD" or "HD"
["SD", "SD", "SD", "HD"]

If your channel is loading/parsing all that from xml then roku will determine which bitrate to play which is associated with which filename. You set the bitrates, you set the urls, you set the qualities, and roku does the rest.

http://sdkdocs.roku.com/display/RokuSDK ... +Meta-Data
0 Kudos
derekctv
Visitor

Re: Amazon S3

Got it! Thank you very much and Happy New Year to you.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.