Hello Drupal Nation!

Your assistance would be greatly appreciated. We are running Drupal 5 utilizing both the flash video & dash player modules. Dash Media Player developer, Travis, recently confirmed that for use of the Dash Player API, the dashplayer.swf file path s/b http://www.mysite.com/player/dashplayer.swf

I have the following questions:

1) What directory should the .rss and/or .xml video playlist file be placed in relationship to the dashplayer.swf file?

2) What directory should the source video flv. files be placed in relationship to the dashplayer.swf file? At upload utilizing the Flash Video module, our videos currently upload to the http://mysite.com/files/myvideoupload path.

a) The current path of our dashPlayer.swf in the Dash Player Module is: http://mysite.com/player/dashPlayer.swf

3) I am confused on the utilization of the config file. Currently we have set some flashvars in the Dash Player config file, yet from the settings such as playlist menu,links, arg, etc...., I do not notice any effect on the dash player when it displays. As such, should the 'congfig' flashvar be placed in the config=myconfig xml file or should it be placed as a flashvars of the Dash Player Module API embed code ?

Please advise,

Thanking you in advance!

Comments

travist’s picture

Status: Active » Fixed

Hello publishing!

Seems like you are on the right track, but here are the answers to your questions...

  • It does not matter where the RSS or XML files are located as long as you pass the absolute path to the Dash media player using the file parameter. For example, if you pass in http://www.mysite.com/shama/lama/ding/dong/videos.rss using the parameter file, it really doesn't matter where the player is located since it will actually use the abosolute path when opening the RSS feed.
  • Also doesn't really matter... Although, I would like to make a suggestion. I will be working up a tutorial very shortly on using the FlashVideo module with Dash Media Player, but until then, I would like for you to follow this guideline....
    • Use the FlashVideo module as the mechanism to upload and convert the videos
    • Instead of using flashvideo_get_video or [video] to display the video, it is HIGHLY RECOMMENDED that you use the dashplayer_get_player instead. If you wish to simulate the flashvideo_get_video API using the dashplayer_get_player API, then use the following code...
      <?php
      $params['node'] = $node->nid;
      $params['width'] = 450;
      $params['height'] = 405;
      print dashplayer_get_player($params);
      ?> 
      

      This does the same thing as print flashvideo_get_video($node, array());...

  • The path that you have set for the Dash Media Player is the recommended path.
  • You will NOT notice the affect if you are using the FlashVideo API to show the player... Only when you use dashplayer_get_player will you notice the parameters come in from the Config file. Also, the flashvars section in the config file is just a way to allow you to not have to pass in a hundred parameters using the object code FlashVars, but it will still work if you use the FlashVars to pass in these variables.

I hope this helps!

Thanks,

Travis.

publishing’s picture

Hi Travis,

Thank you for your reply. Passing the RSS/XML playlist files to the dash player is now much clearer.

1) I am actually currently utilizing the Flash Video module to "upload" video in my Drupal CMS with the Dash Media Player and dashplayer_get_player API. All of this aspect seems to work ok

Forgive me, but becasue I do not receive the expected effects of my dynamic playlist settings(@ arg, playlist menu, horizontal playlist, etc....) between Dash Player and various playlist, I must press in a bit more regarding Item #3 of my original inquiry. Surely because of my settings, but it seems as if my config.xml file flashvars settings are not passing to the Dash Player:

Below is item #3 original Inquiry:

* I am confused on the utilization of the config file. I prefer to set the majority of flashvars in the congfig.xml file just to keep the embed code simple and clean.

Currently we have set some flashvars in the Dash Player config file, yet from the settings such as playlist menu,links, horizontal playlist, arg, etc...., I do not notice any affect on the dash player appearance/functionality when it displays. As such, should the 'congfig' flashvar be placed in the - config=myconfig - xml file or should it be placed and referenced as a flashvars of the Dash Player Module API embed code ? **Maybe if I can visually see an actual relational setup it will help. Can you provide a brief, snap shot code snippet of a config.xml file, loaded with a few flashvars with the "corresponding" Dash Player API embed code and congfig=myconfig reference ?

Thanks Travis, I think I can turn the corner once I get some clarity with this aspect.

travist’s picture

The only thing I can really do here is give you an example of a player and its remote playlist with each config file respectively. Suppose you want to setup the player with a horizontal remote playlist (which seems to be what you are doing here). Here is what you would do....

For the Player

<?php 
$params['width'] = 550;
$params['height'] = 420;
$params['id'] = 'dashplayer';
$params['config'] = 'player';
print dashplayer_get_player($params);
?>

And its config file would be given as player.xml in the config folder and look like this....

<params>
   <license></license>
   <gateway>http://www.mysite.com/services/amfphp</gateway>
   <apiKey>123456789</apiKey>
   <baseURL>http://www.mysite.com</baseURL>
   <flashvars>
      <connect>dashplaylist</connect>
      <disableplaylist>true</disableplaylist>
   </flashvars>
</params>

And for the Horizontal Playlist

<?php 
$params['width'] = 550;
$params['height'] = 120;
$params['id'] = 'dashplaylist';
$params['config'] = 'playlist';
print dashplayer_get_player($params);
?>

And its config file would be given as playlist.xml in the config folder and look like this....

<params>
   <license></license>
   <gateway>http://www.mysite.com/services/amfphp</gateway>
   <apiKey>123456789</apiKey>
   <baseURL>http://www.mysite.com</baseURL>
   <flashvars>
      <connect>dashplayer</connect>
      <playlist>videos</playlist>
      <playlistonly>true</playlistonly>
      <playlistskin>hplaylist</playlistskin>
      <vertical>false</vertical>
   </flashvars>
</params>

Now that I look at this code, I think there might be some confusion as to what parameters can be placed in the XML file and what needs to be passed directly to the dashplayer_get_player API. There are 4 different parameters that you cannot provide using the XML file, and that is because they are used to construct the Object code, and not really ever passed to the player.

These are....

  • width
  • height
  • id
  • config (special in that it gets passed to the player as a FlashVar, but cannot be provided using the XML file)

I hope this helps....

publishing’s picture

Thanks Travis,

You are magnificient! I think that I can work it from. At least, I think I have some good info to chew on.

Again, pls keep the Dash Player going. As prev mentioned, I searched hi- and wide for a player which goes beyond just a primitive html embed. Also, as you probably know there are some rapid advances in the market place with flash 10; FMS and peer to peer (P2P) content distribution. Because flash 10 is now h.264 compliant, a whole new frontier for broadband broadcast, is now on the near horizon. The common thread is that a viable, advanced functional player is needed. The fact that you have integrated Dash Player into a CMS (Drupal) is a triple plus. Travis, you have scored with the Dash Player - Stay ahead of the pack and keep leading the pack.

Great job! --- Thanks again.

travist’s picture

Thank you! Dash Media Player is my number one priority and I am going to do whatever it takes to make it lead the way. I have many tricks up my sleave.

Stay tuned with version 1.1. I am releasing a Skinning API so that skinners can govern how the player behaves. It will be a great addition.

Thanks for the complements.

Travis.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

virtualgirl’s picture

OMG OMG OMG THIS:

$params['node'] = $node->nid;
$params['width'] = 450;
$params['height'] = 405;
print dashplayer_get_player($params);

WORKED!!!! THERE IS THE PRETTY LIL PLAYER RIGHT ON ME PAGE!

THANK YOU T

virtualgirl’s picture

I POSTED JUST BELOW... THANK YOU

codingdeveloperdrupal’s picture

horizontal playlist is not working.
the Xml which i have created is

<params>
   <license></license>
   <gateway>http://localhost/sandbox/services/amfphp</gateway>
   <apiKey>b2deb83fb4bbc972744bac6ac5329082</apiKey>
   <baseURL>http://localhost/sandbox</baseURL>
   <flashvars>
      <connect>dashplayer</connect>
      <playlist>2ndplaylist</playlist>
      <playlistonly>true</playlistonly>
      <playlistskin>hplaylist</playlistskin>
      <vertical>false</vertical>
   </flashvars>
</params>

I jus got only the playlist but the video is not working

codingdeveloperdrupal’s picture

When i edited <playlistonly>true</playlistonly> to false the hplaylist skin is turned off and the default skin is working.

saloob’s picture

Travis, champion work. I followed your ffmpeg tutorial to once set up.
I set up Flashvideo and Dashplayer on a site: http://panorientnews.com/new/VideoPlayer
I made the views, set that in the Block, dashplayer set correctly with service key, etc.
Can you see from this page what the problem might be?

Thanks in advance if you have a minute!

Regards,

Matthew

kirankumar_k’s picture

Hi All,

I have added video module in drupal the player is loading but there is no video it is simply loading and player is unable to find the video path i think thats why video is not playing and just player is coming.....
Can i know what is the exact problem with my video player..

I am using Dash Player....

Thanks in advance...

--- Kira.........