So I've been playing around lately on my Mac OS X Lion 10.7.3 system, trying to get the VLC plugin working.
Initially I couldn't get the prebuilt binary (which is plugin version 1.0.5, 32-bit Intel) to work. This is mainly due to the fact that the installation isn't performed properly.
After installation there is a folder /Library/Internet Plugins/VLC Plugin containing the plugin. Inside Contents, there's a file "Info.plist", but on my system, it was missing some vital information, so I had to add it manually:
Code: Select all
<key>WebPluginMIMETypes</key>
<dict>
<key>video/x-ms-asf</key>
<dict>
<key>WebPluginExtensions</key>
<array>
<string>asf</string>
</array>
<key>WebPluginTypeDescription</key>
<string>Windows Media Video</string>
</dict>
<key>video/x-ms-wmv</key>
<dict>
<key>WebPluginExtensions</key>
<array>
<string>wmv</string>
</array>
<key>WebPluginTypeDescription</key>
<string>Windows Media Video</string>
</dict>
<key>application/x-vlc-plugin</key>
<dict>
<key>WebPluginExtensions</key>
<array>
<string>vlc</string>
</array>
<key>WebPluginTypeDescription</key>
<string>VLC Plugin content</string>
</dict>
</dict>
<key>WebPluginName</key>
<string>VideoLAN VLC Plug-in</string>
<key>WebPluginDescription</key>
<string>VLC Webbrowser Plugin - Version 1.0.5 - (c) 1996-2010 The VideoLAN Team.</string>
(I added those keys to inside the top-level <dict> element, after all existing keys).
Note that I have only associated the WMV and VLC plugin mime types to the plugin; you can assign any other mimetypes supported by VLC in exactly the same way.
After this change, the plugin actually shows up in about:plugins in Firefox 10.0.2, and in chrome://plugins/ in Google Chrome 18.0.1025.165. It even shows up in Help -> Installed plugins on Safari 5.1.5.
Since the plugin binary is 32-bit, you must launch the browser in 32-bit mode to get the plugin to actually work. This is done by selecting the application in the finder, right-clicking, selecting "Get Info", and then activating "Open in 32-bit mode".
Doing all of the above, the plugin actually works in Firefox and in Google Chrome (in 32bit mode), with one quirk: the video opens in a borderless pop-up window, and sometimes gets stuck BEHIND the browser window, so you have to move it away, or open expose or something to find the video...
I couldn't get the 32-bit binary to work in Safari 5.1.5, even when Safari itself was started in 32-bit mode.
Now, concerning all the 64-bit discussions, here is what I was able to do sofar:
I downloaded the sources of the main VLC project, v1.1.13 (the v2 no longer contains the browser plugin: it has moved to a separate project, and I haven't played around with that yet), and, using appropriate configure options, was able to actually compile a 64-bit plugin from those sources (I won't describe the exact steps unless someone would like to know: it's rather long, and I used the Xcode 4.2 toolchain, which involves a bit of hacking to get the older sources to compile). The plugin version built from the sources also contained an incomplete Info.plist, into which I added the missing keys. And what do you know? It actually works, this time in ALL browsers, including Safari. Of course you must load them all in 64bit mode to get the 64bit plugin to run. Again, the videos load in a separate floating borderless window, which often ends up behind the browser window.
The odd thing here seems to be that the existing minimal_macosx gui module actually compiles and runs in 64-bit mode, which, given the previous discussion, I didn't really expect... The source code itself for minimal_macosx is actually (partly) in Objective-C, which would seem to suggest it is already 64-bit ready?
I will carry on investigating some more options, but at least it seems that not all is lost for the present...