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: 
SolveLLC
Visitor

streaming S3 hosted files. Content-Disposition: attachment

I’ve been looking to see why some of the DFP ads will play and some won’t.

For example:

This has the correct configuration to allow it to be streamed.
CASA Noble ad: http://ds.serving-sys.com/BurstingRes/S ... b010c0.mp4


This does not, it forces download instead of streaming.
Coors ad: https://d2290ppie00mze.cloudfront.net/m ... 3518fd.mp4

Is there a way to trick Brightscript into not caring? I'm guessing that it's because of the configuration of the server and setting "Content-Disposition: attachment; filename=MCCBMISTER3001.mp4"

Here are the headers for the file that is not streaming:

GET /media/44522/107066/a5cb8355-c16c-4200-85a0-2f1f8bf71ec0/8f37e4ad-a00b-4b19-8622-719e973518fd.mp4 HTTP/1.1
Host: d2290ppie00mze.cloudfront.net:443
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 3856
Connection: keep-alive
Content-Disposition: attachment; filename=MCCBMISTER3001.mp4
Content-Length: 11669246
Content-Type: video/mp4
Date: Fri, 06 May 2016 01:25:59 GMT
ETag: "f09771af68356434012d8264a5ff9a77"
Last-Modified: Tue, 22 Mar 2016 20:48:43 GMT
Server: AmazonS3
Via: 1.1 6007ebfedfcc228a3c24627a4a67efc2.cloudfront.net (CloudFront)
X-Amz-Cf-Id: iGFjlxGMvZIZuTlp0jjrcEGRvJEoZRsMfWrABgiW1NS56CN9eee9KA==
X-Cache: Hit from cloudfront


Here are the headers for the streaming file:

GET /BurstingRes/Site-24112/Type-16/eb61d31e-ef49-4045-b886-5a16fdb010c0.mp4 HTTP/1.1
Host: ds.serving-sys.com
Accept: */*
Accept-Encoding: identity;q=1, *;q=0
Accept-Language: en-US,en;q=0.8
Cookie: C5=; D2=; A6=022dd7kBOI000oCq000010000; u2=348235b4-d3b4-438f-92fc-89f399da0aff48n00g
DNT: 1
Range: bytes=0-
Referer: http://ds.serving-sys.com/BurstingRes/S ... b010c0.mp4
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

HTTP/1.1 206 Partial Content
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Content-Length: 9518982
Content-Range: bytes 0-9518981/9518982
Content-Type: video/mp4
Date: Fri, 06 May 2016 01:26:20 GMT
ETag: "c59cee9ec7a1d11:0"
Last-Modified: Fri, 29 Apr 2016 03:31:30 GMT
Server: Microsoft-IIS/7.5
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
0 Kudos