mplayerplug-in supports the following javascript methods, properties and events


methods:

	void Play();
	void Pause();
	void Stop();
	void quit();
	void DoPlay();
	void DoPause();
	void FastForward();
	void FastReverse();
	void ff();
	void rew();
	void rewind();
	void Seek(in double value);
	void Open(in string filename);
	double getTime();
	double getDuration();
	double getPercent();
	
	void controls.play();
	void controls.pause();
	void controls.stop();
	
properties:

	attribute string filename;
	readonly attribute long playState;
	attribute boolean ShowControls;
	attribute boolean fullscreen;
	attribute boolean showlogo;

events:

	onMediaComplete
	onEndOfStream
	
	
	
Detail:

	Play(), DoPlay(), controls.play()	 	
			
			plays the current media
	
	Pause(), DoPause(), controls.pause()
			
			pauses the playing media
	
	Stop(), controls.stop()		
			
			stops the playing media
	quit()		
			
			cancels the media player triggers onMediaComplete and onEndOfStream events
			
	FastForward(),ff()
	
			Seeks forward 10 seconds in the media
			
	FastReverse(),rew(),rewind()
	
			Seeks backwards 10 seconds in the media
	
	Seek(value)
	
			Seeks "value" seconds into the media
			
	Open(filename)
	
			Opens "filename", but does not start it
			
	getTime()
		
			Returns the number of seconds into the media
			
	getDuration()
	
			Returns the number of seconds the media is long
			
	getPercent()
	
			Gets percentage of media played 0 = 0% 100= 100%
			Will return 0 for some media types since duration is not always 
			available from mplayer
			
	filename
	
			Able to get and set this property
			x = filename, puts the URL of the current media in x
			filename = "x", opens URL x, like Open("x")
	
	playState
	
			read only property
			Possible return values and meanings
			
			UNDEFINED 	0
			STOPPED 	1
			PAUSED 		2
			PLAYING		3
			SCANFORWARD	4
			SCANREVERSE 	5
			BUFFERING	6
			WAITING		7
			MEDIAENDED	8
			TRANSITIONING  	9
			READY		10
			RECONNECTING	11
			INITIALIZING   	12

	ShowControls
	
			Boolean property to make the player controls visible or not
	
	fullscreen
			Boolean property to make the player go fullscreen or not
	
	showlogo
			Boolean property to make the logo visible or not	
						
	onMediaComplete, onEndOfStream
	
			Events that are triggered when the playlist is empty
			
			example:
			
			<embed onEndOfStream='alert("media done");' src="http://host/some/media.mov"></embed>
	