This module is absolutely brilliant! It definitely is one of Drupal's most promising modules. I am just wondering if it is possible to do the following:

1. Show dash player on each and every node for certain designated content types
2. Allow users to upload videos to any node (or even better, simple provide a Youtube video ID)
3. Automatically generate playlist for each node and play it

I know this might sound crazy, just think it would be great if this can be achieved in some way, then this module would become the ultimate node-media-player. Thanks for your attention!

Comments

hankliu’s picture

Basically the idea above is similar to the "node images" module. Just thought it would be perfect to do "node videos" using this module. Thanks again!

travist’s picture

Status: Active » Postponed (maintainer needs more info)

Yes! This player can do this. Along with the parameter playlist (which shows media from a view), I also built in another parameter called node where you can just pass in the Node ID of the media you would like to show. Try the following and see if it works...

<?php
   $param['width'] = 652;
   $param['height'] = 432;
   $param['node'] = $node->nid;
   print dashplayer_get_player($params);
?>

Let me know if this works...

Thanks,

Travis.

hankliu’s picture

Thanks! I tried this on a image node. Get the following error message:

warning: Invalid argument supplied for foreach() in /home/public_html/modules/dashplayer/dashplayer.module on line 201.

travist’s picture

Ok... I will try to get this fixed this weekend.

Thanks for the heads up.

Travis.

blue.moon’s picture

Actually I m trying the same thing..

I have multiple video on one node and I want to embed Dash Media Player in Block
When User will see any node if it will have any video or multiple video than Dash Media Block will show it...

I have created a block where I am showing Dash Player from a Simple Path not from Playlist or views...

But I really want to show it.

travist’s picture

You can probably achieve this by simply writing some PHP code in your block to show the node based off the arguments passed to the URL...

Like this...

if( (arg(0) == 'node') && is_numeric(arg(1)) && !arg(2) )
{
   $params['node'] = arg(1);
   print dashplayer_get_player($params);
}
blue.moon’s picture

I tried it before I post here. But it does not load any play list. It shows an streaming GIF on both side playlist and Video Screen but it does not load any videos or playlist.

blue.moon’s picture

I tried it before I post here. But it does not load any play list. It shows an streaming GIF on both side playlist and Video Screen but it does not load any videos or playlist.

travist’s picture

Do you have the Node Services permission checked that allows outsiders to use the node service module?

blue.moon’s picture

Travis, Do you think if I could not make it access for all outsiders? So Should it not be able to play for admin also?
I think admin has all the rights and I was doing this from Admin and it is not happening even my view page which you created and called a php snippet in page that calls view and makes params for DASH PLAYER it is not working till yet.

I have checked all the configuration and checklist,
And Sorry I don't have a domain right now to upload a live site I m testing that for Localhost.

Blue Moon.

travist’s picture

You aren't using the latest version of Services are you?... After the maintainer updated the Services module, it seemed to have broken the Dash Media Player. I am working to resolve this issue as quickly as possible, but for the time being, you will need to use version 0.91 for Drupal 5, and version 0.9 for Drupal 6.

Let me know if this was your issue.