That X-Range header was an experiment me and Faidon tried for the ogv.js
media player I've been prototyping (Flash fallback version) . We couldn't
get the extra header -- or the regular Range header -- to work through the
varnish layer though, so current code doesn't use it.
Its safe to remove that part from the file.
I'm going to recommend something like DASH streaming to better handle
seeking, dynamic resolution changes, and clean buffering & http cache
friendliness; will put some notes together on that in a bit, probably
months out from prototyping it.
(Long story short, a media stream is divided into small chunks of video or
audio, those get loaded a couple at a time over plain http/https, and the
player stitches them back into a continuous stream - but with the ability
to switch resolution s at, or seek to, any packet boundary without any
partial content stuff.)
-- brion
On Jul 5, 2014 12:58 AM, "Brian Wolff" <bawolff(a)gmail.com> wrote:
Hi all.
Does anyone here know what the deal is with
upload.wikimedia.org/crossdomain.xml ? I couldn't find it anywhere in
the puppet repository. I was under the impression that it was so
cortado java applet could play video files. However its current value
is:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="X-Range"
/>
</cross-domain-policy>
And java (or at least some versions. Docs are a bit scarce. The old
version I have installed - 1.6.0_12 follows this at any rate), seem to
indicate that java doesn't support the
"allow-http-request-headers-from" element, and will ignore the file if
present. Thus if you get past the whole applet is unsigned (not easy
on modern java), you will be burned by the same origin policy
preventing loading from
upload.wikimedia.org since java doesn't like
the crossdomain.xml
Thus I'm wondering what the "<allow-http-request-headers-from
domain="*" headers="X-Range" />" is for. What else do we use
that
looks at this file? (Flash would be the most obvious candidate for
using such a file. ). Why would it want to allow an "X-Range" header
anyways? Isn't the header named "Range" without the X- ? In my quick
test, sending an x-range header did nothing.
--bawolff
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l