New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 608499 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Video tag with crossorigin attribute does not load

Reported by j...@jwplayer.com, May 2 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

Example URL:
http://playertest.longtailvideo.com/redirect-caption.html

Steps to reproduce the problem:
1. Go to the given url
2. Notice that 2nd/3rd video does not load, because crossorigin attribute is set
3. 1st video plays, but caption does not display with cors issue.

What is the expected behavior?
The 2nd/3rd videos should be loading and playing, regardless of the crossorigin attribute.

What went wrong?
Tracks need crossorigin='anonymous' on the video tag in order to be displayed. However, setting that will break the video from loading.

Did this work before? No 

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? No Firefox 45.0.1, Edge13

Chrome version: 50.0.2661.86  Channel: n/a
OS Version: OS X 10.10.5
Flash Version: Shockwave Flash 21.0 r0
 
Cc: hubbe@chromium.org
Components: -Internals>Media Internals>Media>Network

Comment 2 by hubbe@chromium.org, May 2 2016

It doesn't look like the remote server that has the caption is responding with Access-Control-Allow-Origin headers, which would be required for this to work.
Seems like this is working as intended.


hubbe@ Please label this as WontFix if you feel so.

Comment 4 by j...@jwplayer.com, May 3 2016

hubbe@ Thank you for the response. 
Do you mean the video is not responding with Access-Control-Allow-Origin headers instead of the caption?
The video is the thing that does not load when we set crossorigin attribute.
Also, the video and the caption are from two different sources, so we need a way to load them both. Is there a workaround to make this work, or can you give us some kind of guidance on how we should tackle this?

Thank you!

Comment 5 by hubbe@chromium.org, May 3 2016

Status: WontFix (was: Unconfirmed)
Yes, you're right, the video does not seem to respond with access-control-alllow-origin headers. Additionally, since the video is accessed through a redirect, multiple origins are in play, which chrome translates to a "Origin: null" request header, which seems reasonable.

I think this will work with crossorigin="anonymous" if you make sure that the the video returns the cross-origin headers properly.

I'm going to close this bug now, feel free to re-open it if it still doesn't work with the right response headers.

Comment 6 by r...@jwplayer.com, May 3 2016

Thanks hubbe and karandeepb!

While we can ask content hosts and publishers to add the correct headers to their video files, it will be difficult for some of them and there is a catch.

The catch is that access-control-alllow-origin headers are not required to load this media when no crossorigin attribute is added to the video tag. However the attribute is required to load VTT files. So our player adds the attribute to load the VTT and in doing so cripples the ability to load and play the media.

This seems like a problem with the spec or the behavior of the crossorigin attribute compared to the behavior without it.

Is this something we should take up with whatwg?

Sign in to add a comment