WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
101671
createObjectUrl not working with <video src> attribute
https://bugs.webkit.org/show_bug.cgi?id=101671
Summary
createObjectUrl not working with <video src> attribute
Ben
Reported
2012-11-08 17:17:18 PST
I'm attempting to load local video files and embedding them in my web application. To do this, I use the createObjectUrl() method on the file retrieved either from drag and drop, or from a file input. I then set the source of a video element to that URL, with the intent that it would properly load the video into the DOM. And while this works in both Chrome and Firefox (the latest nightly builds, at least) it's not working in Safari. It doesn't report an error. It doesn't render anything. The video element remains blank, even though the source of that element is properly set to the blob. The example in the URL works in both Firefox and Chrome with the respectively supported file formats. I've attempted in Safari with a number of different video formats, including h264.
Attachments
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2012-11-09 09:18:01 PST
Safari media back-end does not support loading blob: urls in <video> elements.
Ben
Comment 2
2012-11-09 09:32:21 PST
Is this something that Safari will eventually support? It works, I believe, with image attributes already.
Rob Hidalgo
Comment 3
2013-10-03 19:09:58 PDT
Still happening on Safari 6.1 with: var file; // the file from <input type="file" var url = window.URL.createObjectURL(file); console.log(url); // blob:somehost.com/some-long-uuid var video = document.createElement('video'); video.src = url; // When chrome, these work // video.addEventListener('progress', videoEvents.progress); // video.addEventListener('seeked', videoEvents.seeked); video.addEventListener('error', function(err){ // Nothing to see here... console.log(err); // Will throw a MediaError code 4 console.log(video.error); }); throwing a MediaError code 4 for a h.264 baseline 3.0 file.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug