mozplayerxp ist ein Mozilla-mplayer-Plugin. Es unterstützt javascript Aufrufe genauso wie einige Extra-mplayer-Merkmale. mozplayerxp wurde auf Basis von GTK1.2 entwickelt.

Homepage: http://mozplayerxp.mozdev.org (will get updated after xmas ...)

Maintainer: MarkusRechberger

Lizenz: MPL

download

Current developer version (stripped): plugin.zip (contains plugin-pre2.tgz, just a wiki issue) (requires a GTK2 version of mozilla - javascript calls play()/stop()/fullscreen() are implemented right now, and libxml2 lateron I'm going to use more parts of the asx file since it contains more informations) copy the content into your mozilla plugin directory, this version also allows multiple instances!

parsing ASX is implemented (though it just checks the first 4 bytes if it's an asx or not this needs to be done because not all asx files start like they should.

mozplayerxp tries to run mplayer in /usr/local/bin (if your mplayer is located somewhere else just make a symlink into that directory)

ldd mozilla-bin should contain:

        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x400f4000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40346000)

a gtk2 antialiased version looks like that:

sometimes it might crash, the current problem is multithreading of course unless you don't bomb it too much with reloading it should work fine. Memory usage stays low as well.

antialiased.jpg

faq

scripting

here's a short example (more features will get added later):

<html>
<head>
</head>
<body>
<embed type="application/x-mplayer2" width=400 height=300 src="test.avi"></embed>
<script>
var embed=document.embeds[0];
</script>

<form name="formname">
<input type=button value="play" onclick='embed.play()'>
<input type=button value="stop" onclick='embed.stop()'>
<input type=button value="fullscreen" onclick='embed.fullscreen()'>
</form>
</body>
</html>

mplayer wrappers

to set the output mode directly for mplayer you could write a wrapper script (I did that for debugging that plugin a few times)

move mplayer to mplayer2

and the new mplayer script should contain for example:

mplayer2 -vo x11 $*

chmod 755 mplayer

News

Sun Nov 23 01:23:52 MET 2003

things to know about

mplayerplug-in vs mozplayerxp?

simple mplayerplug-in relies on the first unix project I've ever written, so it has thousands of global variables in a shared library (do I have to say something else?) for those who don't know if the content of one global variable changes all instances of that plugin will be affected.

the current source of mozplayerxp will be kept in a private cvs to avoid rip offs (if you want to get access - just ask me, it's simple and easy)

Features

mozplayerxp (zuletzt geändert am 2007-12-23 22:47:21 durch localhost)