Forum Discussion

tvn's avatar
tvn
Visitor
13 years ago

Multiple stream qualities, what am I doing wrong?

Hi,
I'm trying to setup my content with two stream qualities, SD and HD.

My content meta data looks like this (set from result of parsed JSON from HTTP GET):

title, description, posters, contenttype, length etc
---
StreamBitrates: [900, 4000]
StreamQualities: ["SD", "HD"]
StreamFormat: "mp4"
StreamUrls: [sd_url, hd_url ]
StreamContentIDs: ["tvn-1-1-900.mp4", "tvn-1-1-4000.mp4"]
IsHD: true
HDBranded: true

I get the following error when I select one from the poster screen to load in the video screen:
An unexpected problem (but not server timeout or HTTP error) has been detected.

However, when I change this code up to use just a single HD URL (with all the arrays having just one element) it works fine and plays the video, same with just a single SD URL.

I can confirm that both sd_url and hd_url work just fine. They are signed/protected CloudFront urls to MP4s hosted in S3.

I'm also assuming that StreamContentIDs are just unique IDs and don't have to match the file names or URLs in any particular convention, is that correct?

What am I doing wrong?

Thanks

1 Reply

  • without more information I'd guess you aren't defining your arrays properly. For example you listed "StreamFormat" only once even though you should have two (albeit identical) values.
    Do you have debug running on your box? If not turn it on and if yes, add more debug output so you can clearly see what's being requested and why it's failing.