Yahoo! WebPlayer

By Ed JohnsonEd Johnson

Description

The Yahoo! WebPlayer is a nifty bit of javascript that automatically detects audio and video links on a web page. It builds a playlist of all the content it can play and places a small "play" icon in front of each audio and video link. The player can be accessed through a small slider in the lower left corner of the web page.

The Details

To use this player with your Wikidot pages requires a bit of extra work. You must place the links to your A/V files and the javascript link, inside a [[html]] block as shown below. This is the only method that Wikidot currently supports for adding javascript to your pages. Because the [[html]] block creates an iframe on your page, it's important to set a minimum height so the player is fully visible when it is exposed.

Although this player is officially in beta, it seems to be very stable and works great! Details are at the Yahoo! WebPlayer home page.

Yahoo has a similar player that is just for audio files.
Yahoo! Media Player

The Code

[[html]]
<style type="text/css">
a {
    font-family: sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #880000;
}
a:hover {
    text-decoration: none;
    color: #008800;
}
body {
    min-height: 400px;
}
</style>
<a href="http://mediaplayer.yahoo.com/example3.mp3">Sample MP3 File</a>
<br />
<a href="http://youtu.be/UFHm_FBErMM">Sample YouTube Video</a>
<script type="text/javascript" src="http://webplayer.yahooapis.com/player-beta.js">
</script> 
[[/html]]

The Result


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Ed Johnson


Rate this solution

If you think this solution is useful — rate it up!

rating: +4+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License