Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since HTML5 doesn't have an official video file format yet and fullscreen support isn't in all browsers, I've been wondering if Chrome, Safari, or Firefox can be instructed to have their HTML5 video players replaced with VLC and how I can go about setting that up (PC/Mac owner here).

I know that plugins are supposedly full of security issues, but I believe more of it has to do with flash than anything else. Anyways, in my opinion it would be a good idea if everyone could choose the browser's default HTML5 video player. This way, we won't have to worry about lack of support for true fullscreen, nor mp4, WebM and OGV. Also, I'm not doing beta browsers since they very easily turn buggy.

Vimeo and many other sites would be great for HTML5 if this is currently possible.

share|improve this question

migrated from Sep 10 '10 at 12:54

This question came from our site for professional and enthusiast programmers.

Very good question, but I think it might get better answers on Superuser. – Paul D. Waite Sep 9 '10 at 8:02
(That’s assuming you want to set this up on your own computer, as opposed to including something in your web pages to make browsers to it automatically? As I don’t think the latter is possible.) – Paul D. Waite Sep 9 '10 at 8:03
"That’s assuming you want to set this up on your own computer" That's correct. – Alex Aaron Goven Sep 9 '10 at 22:48
Also, I'll check out Super User. – Alex Aaron Goven Sep 9 '10 at 22:48
This would probably involve writing your own plugin for a browser to do this. I know there is a VLC plugin for Firefox. Then the only thing you would have to do is replace all video elements with a VLC object. – Ruud v A Sep 10 '10 at 13:02

No (official) information exists yet for HTML5, but I suppose that if the default player is changed in the browser, then HTML5 will use it as well. Below are some sources for installing the VLC plugin in various browsers and OS.

The "The Mozilla plugin" section in the Videolan manual, Chapter 4. Advanced use of VLC, explains the process for Windows/Firefox and OSX/Safari.

For Linux/Firefox see Howto: Firefox Install Multimedia Player VLC with plug-in.

share|improve this answer

For Firefox, install the VLC plugin, and then execute this code:

var videos = document.getElementsByTagName("video"); for (var i = 0; i < videos.length; i++) { var vlc = document.createElement("embed"); vlc.type = "application/x-vlc-plugin"; if (videos[i].width) vlc.width = videos[i].width; if (videos[i].height) vlc.height = videos[i].height; vlc.setAttribute("target", videos[i].src); var sources = videos[i].getElementsByTagName("source"); for (var j = 0; j < sources.length; j++) { vlc.setAttribute("target", sources[j].src); } vlc.setAttribute("id", videos[i].getAttribute("id")); vlc.setAttribute("class", videos[i].getAttribute("class")); videos[i].parentNode.replaceChild(vlc, videos[i]); }

You can execute code with the FireBug console, or make this a script bookmark. Please note that this will only work with basic examples; javascript controlling of the video does not work properly anymore, and the videos will only be replaced at the moment you execute the code. Controls are also missing. You'd better use the browsers video player.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.