Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search

Available in the Appstore!All the content of xpageswiki.com for iPhone or iPad for offline access.

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/

Add Comment

Name:
Comments:
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 information help you?
Please honor our efforts and flattr this!