Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Home > Client JavaScript > Work with multimedia

Work with multimedia

ShowTable of Contents
HideTable of Contents

integrate a mp3 player


If you like to integrate a mp3 player on your site, you can use the the Yahoo Mediaplayer .
Usage is pretty simple, only include this in your XPage source code:

<script>
		 var YMPParams =
    	{
        	autoplay:true,
        	volume:0.5,
        }
		</script>
		<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>


Then add some links to mp3 files somewhere:

<a tabindex="1" href="firstsong.mp3">Title of first song</a>
<a tabindex="2" href="secondsong.mp3">Title of second song</a>


The links get a "play" button automatically, and due to the tabindex attribute the Yahoo player creates a playlist automatically.

More information:

Basic usage: http://mediaplayer.yahoo.com/
Full API: http://mediaplayer.yahoo.com/api/
See what's possible with Xpages.
Have a look at our ServiceCommunicator website
and the YouAtNotes Support.
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!