Video Size?

Avatar image for adam2marsh
adam2marsh

21

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By adam2marsh

Morning All,

In my app I've been trying to add video download progress but hit a stumbling block which I couldn't find an answer when searching the forum. The way I get the size of a video now is by performing a HEAD request, but on testing it seems no matter what video the same size comes back no matter what video, here's an example using curl.

HTTP/1.1 200 OK

Server: Apache

ETag: "6a23881d01c9d752e20dd7efbe5eee13:1458585666"

Last-Modified: Mon, 21 Mar 2016 18:41:06 GMT

Accept-Ranges: bytes

Content-Length: 11334031

Content-Type: video/mp4

Date: Fri, 07 Oct 2016 08:45:23 GMT

Connection: keep-alive

When checking my DB I found all the videos had a video size of 11334031, I checked the URL and tried with and without an API_KEY and it made no difference. Anyone seen this before and can offer some advice?

Thanks In Advance,

Adam2Marsh

Avatar image for adam2marsh
adam2marsh

21

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By adam2marsh

Okay so unsure exactly why but did a little more testing and it seems that if you don't include the API key you get:
Content-Length: 11334031

But I just retired again with API_KEY after tracing a call via the website and found the content length came back as expected:
Content-Length: 1605088375

I think my app is currently being bad and trying to perform the HEAD request without the API_KEY so I'll check, update and retest. If I get it all working will post back incase anyone else has a similar issue.