[Webkit-unassigned] [Bug 151294] New: Html5MediaElement missing "crossOrigin" attribute therefore CORS does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 14 21:28:37 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151294

            Bug ID: 151294
           Summary: Html5MediaElement missing "crossOrigin" attribute
                    therefore CORS does not work
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: electroteque at gmail.com

Hi I'm not sure if anyone has mentioned this but this standard has been around for a long time now. 

This is not implemented therefore this type of code will not work

this.canvas = document.createElement("canvas");
    this.canvas.setAttribute("width", width);
    this.canvas.setAttribute("height", height);
var ctx = this.canvas.getContext('2d');
 ctx.drawImage(video,0, 0, width, height, x, y, width, height);
var dataURL = this.canvas.toDataURL("image/" + this.type, this.quality);

Both Safari in OSX and IOS, Android default browser and IE11 suffer the same issue. 

It requires a proxy work around setting up a new video for capture or requires Flash to do the capture !   to think it needs a work around like this is silly considering Apple's stance against Flash but then requiring Flash to do captures of video frames. 

It is a fairly common requirement and the deviation from standards is troubling. 

I believe there is a ticket in regards to the 360 webGL CORS which is quickly becoming popular and will be needed. But this is not just drawing to the canvas but "toDataUR" to get the image data uri also. 

Let me know.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151115/da89dee5/attachment-0001.html>


More information about the webkit-unassigned mailing list