tvn
13 years agoVisitor
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
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