Hi,
Everything is in the title. The player is working fine, but I would to enable it in a block. I tried this in the body of the block (in PHP code) :

<?php
   $params['width'] = 326;
   $params['height'] = 216;
   $params['playlist'] = 'videos';
   print dashplayer_get_player($params);
?>
<?php
include ('player/dash.php');
print dashplayer_get_player();
?>

but the player is not embedded in the block. In fact, the player block appears on every url of my site, but the site itself disappears when the block is enabled!
What can I do?
Thanks

Comments

Anonymous’s picture

I didn't test it with dash, try http://drupal.org/project/nodesinblock.

But it could be something else, like the end part php code.

travist’s picture

Status: Active » Fixed

If you are using Drupal, then you do not need to include the code...

<?php
include ('player/dash.php');
print dashplayer_get_player();
?>

This is for non-Drupal sites... What you want is just the first PHP code that you submitted...

<?php
   $params['width'] = 326;
   $params['height'] = 216;
   $params['playlist'] = 'videos';
   print dashplayer_get_player($params);
?>

If this doesn't show up, then make sure that the path to the Dash media player is correct in your Dash Player Settings.

Hope this helps.

Travis.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.