Embed API
Contents
Overview
The Streampad Embed API allows developers to customize the look and feel of Streampad as well as choose which features to include and exclude by setting options.
Getting Started
There are two ways to set options.
URL String
Set options on the end of the javascript url.
http://o.aolcdn.com/os_merge/?file=/streampad/sp-player.js&file=/streampad/sp-player-blogger.js&expsec=86400&ver=12&trackcolor=ffffff&bgcolor=000000”
Script
Set options inside a script tag. Include the script tag at the bottom of the HTML document, right before the closing body tag. All options are strings and should have quotes around them.
<script>
streampadPlayer.params.trackcolor = "ffffff";
streampadPlayer.params.bgcolor = "000000";
</script>
Options
clicktext
This option sets the text of the player before it is clicked on. (Use %20 where you want a space to go - clicktext=space%20here)
bgcolor
This options sets the color of the background. (bgcolor=#000000)
trackcolor
This option sets the color of the player's text. (trackcolor=#FFFFFF)
progressfrontcolor
This options sets the color of the playing progress bar (progressfrontcolor=#CCCCCC).
progressbackcolor
This options sets the color of the loading progress bar (progressbackcolor=#FFFFFF).
clickimg
This option sets the visiblity of the play button before the player is clicked. Default is false. (clickimg=true).
autoplay
This option sets whether the player starts playing immeditelly on page load. Default is false. (autoplay=true).
showpop
This options sets whether the popout button is visible. If not visible, users wll not be able to pop the player out to its own window. Default is true. (showpop=false).
showplaylistbutton
This options sets whether the playlist button is visible. If not visible, users will not be able to open the playlist drawer. Default is true. (showplaylistbutton=false).
drawersize
This option sets the height of the playlist/user drawer. Default is 215px (drawersize=215).
showdrawer
This option sets whether the playlist drawer is opened on play. Default is false. (showdrawer=true).
showvolumebutton
This options sets whether the volume button is visible. If not visible, users will not be able to adjust the volume. Default is true. (showvolumebutton=false).
api (Tumblr only)
This option allows you to embed a Streampad player on any page and have it play the songs from your blog. Leave off the ‘http://’ part. This is useful if you want to put the player on a different page then the one the songs are on. (api=fredwilson.vc)