Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to call and run the embedded real player from .js file?

Status
Not open for further replies.

keith23

Technical User
Joined
May 26, 2005
Messages
97
Location
NL
Hi all here i got a script inside player.js file. I want to use this it some how so that it plays a song playlist that is inside playlist.ram file. could an expert show me how i can use this .js file to play a playlist which is inside playlist.ram file? Basically i have a playlist.ram file that has a few song url inside it and i want to use this reduced embedded real player js file to play it for me.But i do not know how to code it. All i am intrested in run this music for me i do not want any controls for it. Thanks

embedded player.js file:
Code:
	//      Code for the embedded Realplayer            
	
	playerObject =
		'<' + 'EMBED NAME=player type="audio/x-pn-realaudio-plugin" [b]SRC="/player/ra/ondemand/playlist.php?'[/b] + playList + '"[/b] AUTOSTART=false NOLABELS=true NOLOGO=true CONTROLS=none CONSOLE=player1 WIDTH=1 HEIGHT=1 >\n';


//       start player          

	function startPlayer() {
		document.player.DoPlay();		
		document.player.SetLoop(true);
		setTimeout ("startDisplay();", 333);
	}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top