Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search


Home > Client JavaScript > Work with multimedia
xpageswiki.com
is maintained by 
Julian Buss.
You can hire me.

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:
How to take your XPages App to the iPhone, iPad, Android: use Domino To Go!
Do you look for an XPages Workflow solution? Take YouAtNotes Workflow.