{jr_embed_player_code}
The {jr_embed_player_code} Template Function is used for creating and displaying the proper HTML code that a visitor/user can used to "embed" a Jamroom Flash player on another site. This requires the Jamroom Power Pack to function properly.
Function Parameters
Name |
Type |
Required |
Default |
Description |
song_id |
number |
yes * |
n/a |
The "song_id" parameter is required if generating embed code for a Audio Player. |
video_id |
number |
yes * |
n/a |
The "video_id" parameter is required if generating embed code for a Video Player. |
width |
number |
no |
277 |
The "width" parameter tells Jamroom how wide to make the Bar Code (in pixels) |
height |
number |
no |
260 (video), 20 (audio) |
The "height" parameter tells Jamroom how tall to make the Bar Code (in pixels) |
player |
string |
no |
audio: "ds_small_player.swf"
video: "ds_video_player.swf"
|
If you would like to define the Flash Player (SWF File) to be used in the embded code, you can pass it in via the "player" parameter |
play_mode |
string |
no |
"song_hifi" |
If a song_id has been given, you can define the "play mode" for the Audio Player - either "song_lofi" or "song_hifi" (default). |
Example using {jr_embed_player_code} function
{jr_embed_player_code song_id=$SONG_ID width="100" height="50" play_mode="song_lofi"} |
|