I am currently on a project where we are looking to
support as many platforms as possible, Linux with
mplayer being one of those.
The problem is that the API for mplayerplug-in, which
looks like WMP9's, is making the browser crash when
using the "filename" attribute to change URL.
a DIV element, using code like this:
s += '<embed ';
s += ' id="'+playerID+'" ';
s += ' type="application/x-mplayer2" '; // video/x-ms-wmv
s += ' width="' + playerWidth + '" ';
s += ' height="' + playerHeight + '" ';
s += ' src="'+startClipURL+'" ';
s += ' autostart="1"';
s += ' stretchtofit="0"';
s += ' showcontrols="1"';
s += ' autorewind="1" ';
s += ' showaudiocontrols="1"';
s += ' showpositioncontrols="1"';
s += ' showcaptioning="1"';
s += ' showgotobar="1"';
s += ' showstatusbar="1"';
s += '></embed>';
I tried several methods of changing the URI on-the-fly,
but none worked. I tried using .URL/.filename/.src -
but the only results I could get was after 3 changes
the browser crashed. The only way to recover the
browser is to kill the mplayer process and/or threads.
The media is streaming.
I am using mplayerplug-in 3.15 (ATM the most recent
Instead of scripting a filename change I tried
replacing the entire player by setting the innerHTML to
the "s" variable, and just changing the startClipURL,
which works - but the problem is right click -> stop
doesn't work properly then. I cannot be exact because
the problem doesn't seem to be exactly the same every
time - sometimes playstates refuse to change, sometimes
playstates changes :(
There are many small issues to work on here, and I
would prefer not to submit a public URL in here.
Please contact me if you like :)
Log in to post a comment.