Setting up a Remote Playlist with Dash Media Player
In this section I will explain how to set up a remote playlist which can be displayed separately from your Dash Media Player.
Step 1: Install Dash Media Player
You may have this installed on your site to service your video needs already, and if that’s the case skip this step. If you don’t have it installed check out the Dash Media Player Quick Start Guide for Drupal CMS.
Step 2: Creating an isolated Dash Media Player
- Copy and paste the following code to the body of the area you wish to display the player. This can be done as a node or a block.
<?php
$params[‘id’] = ‘dashvideo’; $params[‘connect’] = ‘dashplaylist’; $params[‘disableplaylist’] = ‘true’; print dashplayer_get_player($params);
?>- To show the player in a node go to Create Content >> Page and paste the code into the body area. You can give the page any title you want, for example “Isolated Dash Media Player,” then save the page.
- To show the player without playlist in a block go to Administer >> Blocks and create a new block by clicking Add block. Give your block a description and paste the code in the Block body. Then save your block.
- The block will then show up in your list of blocks, from there you can assign it to the location that you want the player to be displayed.
Note: If you are setting up the remote playlist to work with the Dash MP3 player, change:
and add:
*We are currently having problems with the auidopro skin and the remote playlist and are working on ways to get them working correctly.
Step 3: Setting up the playlist
- Go to Administer >> Blocks and make a new block by clicking Add block. Give your block a description and past the following code in the Block body.
- Copy and paste the following code in the Block body. Then save your block.
<?php
$params[‘id’] = ‘dashplaylist’; $params[‘connect’] = ‘dashvideo’; $params[‘playlist’] = ‘videos’; $params[‘playlistonly’] = ‘true’; print dashplayer_get_player($params);
?>Make sure you change the input format to PHP code
- Now the block will be listed in the blocks list and you may move your playlist to the location that you want the block to be displayed in.
Note: If you created a page for your isolated player, you can set the block with the playlist to only show on that page. To do this, click on “configure” next to your playlisy block in the blocks list.
- Under Page specific visibility settings, select Show on only the listed pages.
- Then under Pages enter the node id for the player page that you created. To find this id look at the url for the player page which will look like this
http:www.mediafront.org/{node id}or depending on your path settings may have a prefix such as
node/{node id} - Lastly, save your block.
The player should now display separate from its playlist, while maintaining all of the functionality.



