VLC Plugin

Talk about the native Mac OS X browser.

Moderator: Camino Developers

Post Reply
commenter
Posts: 4
Joined: May 1st, 2012, 3:39 pm

VLC Plugin

Post by commenter »

Could a modified VLC plugin decode H.264 for Mozilla browsers on 10.4 & 10.5 ?
User avatar
Uncle Asad
Camino Developer
Posts: 3957
Joined: July 24th, 2004, 1:38 pm
Location: بين العالمين
Contact:

Re: VLC Plugin

Post by Uncle Asad »

commenter wrote:Could a modified VLC plugin decode H.264 for Mozilla browsers on 10.4 & 10.5 ?

Anything can decode H.264/.mp4 (e.g., the QuickTime plug-in can handle that codec and file format); the problem is that the <video> tag isn't handled by a plug-in, but is handled by native code internal to the browser.

So to use something else, you'd have to write a native backend in the browser (like the one for Ogg) that calls your decoder. And the decoder would have to support the API required for <video> (e.g., at least initially on 10.5, Safari's QuickTime <video> support didn't support all the required attributes of the <video> tag, such as no-buffer and seeking, because the QuickTime API in the OS didn't have a way to do that, and the Mozilla QuickTime-based implementation never got beyond barely playing video and couldn't support the <video> API.)

Or you'd have to do something that rewrites the <video> tags on web pages into <object> tags (which aren't directly compatible), and then whatever plug-in you have for the H.264/.mp4 media type would handle the <object> video. That assumes the site doesn't sniff for <video> + H.264/.mp4 before it decides to insert the <video> tag.
Mac OS X 10.3.9 • PowerBook G4 17" 1.33 GHz | Mac OS X 10.5.x • MacBook Pro 15" 2.2 GHz
Snow7's Camino Forum FAQSearch the Forum  Camino. HelpTroubleshoot Camino
Post Reply