New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't play video files anymore after upgrade to v0.19 #5539
Comments
Could you please provide a full case so we can reproduce it here? |
Of course: <!DOCTYPE html>
<html>
<head>
<script src="vendor/jquery.min.js"></script>
</head>
<body>
<button>Play</button>
<input type="file" id="videoFile1" accept="video/mp4">
<script>
$(document).ready(function(){
var videoFile;
$("input").on('change',function(evt){
videoFile = evt.currentTarget.files[0];
})
$("button").click(function(){
var fileURL = URL.createObjectURL(videoFile);
nw.Window.open('video.html', {}, function(win){
win.enterFullscreen();
win.on('enter-fullscreen',function(win){
video = this.window.document.querySelector('video')
try{
video.src = fileURL;
video.play();
}catch(e) {
// ukNotify(e, 0)
}
video.webkitRequestFullscreen();
})
});
});
});
</script>
</body>
</html> The video.html file is a plain html file with a |
FWIW, tried this on OSX with 0.19.1 and got the same but realized I needed to upgrade the libffmpeg.dylib to an mp4 capable version - worked fine (crashes on 0.20a1 tho') |
I tried in Windows 10, same error message. So, it seems that it does not
work in any of the 3 OS.
…On 9 Dec 2016 18:45, "Blatman" ***@***.***> wrote:
FWIW, tried this on OSX with 0.19.1 and got the same but realized I needed
to upgrade the libffmpeg.dylib to an mp4 capable version - worked fine
(crashes on 0.20a1 tho')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5539 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAeX7bGEqcaPUogR6SCfUobCACe89Yxyks5rGYWzgaJpZM4LIudE>
.
|
@scia07 as reported by @Blatman I think you need another ffmpeg library -- the official one won't play mp4. |
@rogerwang I don't understand what do you mean by that. I know that nwjs has the chromium ffmpeg library built in it. How can I use another ffmpeg library? How can I include it in nwjs? |
We don't distribute the proprietary codecs as we don't have the license. Read more here: http://docs.nwjs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/ |
Hi!
I upgraded our app from v0.17.4 to v0.19 (on Linux) and videos are not played anymore.
The error we get is:
Uncaught (in promise) DOMException: Failed to load because no supported source was found.
What we are doing is, uploada file as a blob and play it.
Any idea why is this happening now?
The text was updated successfully, but these errors were encountered: