Zed Lopez

Mplayer for Realvideo in Firefox

I recently had to test web delivery of a RealVideo file. This solution is crude and not robust. But it was quick (and it had to be quick to justify hacking my own vs. actually installing Realplayer in some environment.)

Dumped this in /usr/local/bin/realplayer:

#!/bin/bash
cd /tmp
wget $1
mplayer `cat $1`

I stopped Firefox, and in mimeTypes.rdf in my firefox profile (and this seems needlessly convoluted):

Within

<RDF:Seq>
, I added:

<RDF:li RDF:resource=“urn:mimetype:video/vnd.rn-realvideo”/>

Within the root element, <RDF:RDF>, I added:

<RDF:Description RDF:about=“urn:mimetype:video/vnd.rn-realvideo” NC:value=“video/vnd.rn-realvideo” NC:editable=“true” NC:fileExtensions=“ram” NC:description=""> <NC:handlerProp RDF:resource=“urn:mimetype:handler:video/vnd.rn-realvideo”/> </RDF:Description> <RDF:Description RDF:about=“urn:mimetype:handler:video/vnd.rn-realvideo” NC:alwaysAsk=“false” NC:saveToDisk=“false” NC:useSystemDefault=“false” NC:handleInternal=“false”> <NC:externalApplication RDF:resource=“urn:mimetype:externalApplication:video/vnd.rn-realvideo”/> </RDF:Description> <RDF:Description RDF:about=“urn:mimetype:externalApplication:video/vnd.rn-realvideo” NC:path=“/usr/local/bin/realplayer” NC:prettyName=“realplayer” />

Restart Firefox, presto, mplayer is working as my realvideo player.