Which file should I edit to add some plugins I want ..
Please help
thanks

Comments

carlop’s picture

+1 i'm also interested in add plugins to flowplayer

dellis’s picture

+1

prabhakarsun’s picture

I tried using this;

$config =  array(
        'clip' => array(
                'url' => $video->url,
        ),
        'plugins' => array(
                'yume' => array(
                        'url' => '/'.drupal_get_path('module', 'flowplayer').'/flowplayer/plugins/yume/flow_yumePlugin.swf', //path to YuMe plugin
                        'domain_id'=> '88ElOFHxAh', //temporary domain_id
                        'ad_request_url' => 'http//shadow01.yumenetworks.com', //testing URL
                        'yume_library_swf_url' => '/'.drupal_get_path('module', 'flowplayer').'/flowplayer/plugins/yume/yume_ad_library.swf', //path to YuMe library
                        'yume_swf_url' => '/'.drupal_get_path('module', 'flowplayer').'/flowplayer/plugins/yume/yume_player_4x3.swf', //path to YuMe player
                        'yume_leader_slot' => 'true',
                        'normalscreen_width' => '915',
                        'normalscreen_height' => '490',
                        'controlsHeight' => '25',
                        'zIndex' => 1
                ),
                'controls' => array(
                        'url' => '/'.drupal_get_path('module', 'flowplayer').'/flowplayer/flowplayer.controls.swf',
                        'all' => true,
                        'zIndex' => 3
                ),
        ),
);
print theme('flowplayer',$config,'the-video',$attributes);

To add Yume plugin. However, it's not working for viral. Icons are displayed, but they don't work.

alienresident’s picture

I have been successful in adding the flowplayer viral video plugin to my flowplayer and I thought I would share that.

First of all the viral video player only works with flowplayer 3.2+
So you need to update all your existing flowplayer files (flowpalyer/flowplayer) to the latest versions from http://flowplayer.org
Make sure the you also download theflowplayer.viralvideos.swf from http://flowplayer.org/plugins/flash/viralvideos.html

Apply this patch http://drupal.org/node/795036#comment-2950112 to make flowpalyer module work with 3.2.+

If you are getting a 300: Player initialization failed: ReferenceError: Error #1069 error, clear you drupal and browser cache, see http://drupal.org/node/828302

Note: I am using the video module to create a cck filefield (field_video) and have the video upload module enabled.
http://drupal.org/project/video

I have a preprocess_page function in template.php (Replace MYTHEME_preprocess_page with the name of your theme. i.e. garland_preprocess_page).

<?php 
function MYTHEME_preprocess_page(&$variables) {  
  global $base_url; 
  $video_width = $variables['node']->field_video[0]['data']['width'];
  $video_height = $variables['node']->field_video[0]['data']['height'];        
  if(empty($video_height)){
    /* If there is no height set a default height */
    $video_height = 360;
  }  
  if(empty($video_width)){
    /* If there is no width set a default width */  
    $video_width = 640;
  }      
  $player_height = $video_height; 
  $filepath = $variables['node']->field_video[0]['filepath'];
  /* Create absolute path */  
  global $base_url;
  $video_path = $base_url . '/' . $filepath;
  
  if(!empty($variables['node']->field_video[0]['filepath'])) {
    flowplayer_add('#ipad', array(
        'clip' => array(  
        'url' => $video_path,
        'autoPlay' => FALSE, // Turn autoplay off 
        'autoBuffering' => TRUE, 
        ),
        'plugins' => array(  
        'viral' => array(  
            'url' => 'flowplayer.viralvideos.swf',
            'share' => array( 
              'description' =>  $variables['node']->title,
              ),
          ),
        ),
      ));
    $variables['video_player'] = '<a id="videoplayer" href="' . $video_path . '" style="display:block; width: ' . $video_width . 'px; height: ' . $player_height . 'px"></a>';
   }
}     
?> 

Then on the node.tpl.php

<?php print $video_player ?>
bcobin’s picture

Thank you alienresident - this is exactly what I'm trying to do, but I'm unclear as to where the code goes - pasting it into template.php breaks the site, with or without the php tags.

Could you possibly more descriptive of exactly how to get the viral plug-in working? It looks like I've successfully updated to 3.2.5 by renaming the new files to match the old names.

Thanks much!

alienresident’s picture

Sorry bcobin

The code in template.php should have been wrapped in a preprocess_page function. I have fixed it now in the example above. Send me a message directly if you still have trouble.

yan’s picture

Status: Active » Fixed

#4 answered the question.

Status: Fixed » Closed (fixed)

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

sven_xo’s picture

How can i add plugins like the ipad/iphone Plugin?

This Plugins havent a new. swf file, only a new .js.

sven_xo’s picture

Status: Closed (fixed) » Needs work
naeluh’s picture

Priority: Normal » Major

@ alienresident

I am using blueprint theme and it already has a MYTHEME_preprocess_page function. I tried to include it in with other but I am not returning any results.

Is there something I can do? Also where do you put the viral.videos swf file to get it to recognize it

thanks

alienresident’s picture

@ naeluh

Did you do the last step adding the $video_player variable to node.tpl.php?

Then on the node.tpl.php

<?php print $video_player ?>

The viral video plug should go in the flowplayer folder with in the flowplayer module

sites/all/modules/flowplayer/flowplayer/
sites/all/modules/flowplayer/flowplayer/flowplayer.viralvideos.swf

Let me know if you are still having issues.

naeluh’s picture

@ alienresident

awesome thanks for the quick response
Yes I added it to the node.
Awesome that is where I added the flowplayer.viralvideos.swf

I already have a blueprint_preprocess_page function in my template.php file.

function blueprint_preprocess_page(&$vars) {  
  global $user;
  $vars['path'] = base_path() . path_to_theme() .'/';
  $vars['user'] = $user;

  //Play nicely with the page_title module if it is there.
  if (!module_exists('page_title')) {
    // Fixup the $head_title and $title vars to display better.
    $title = drupal_get_title();
    $headers = drupal_set_header();
    
    // wrap taxonomy listing pages in quotes and prefix with topic
    if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) {
      $title = t('Topic') .' &#8220;'. $title .'&#8221;';
    }
    // if this is a 403 and they aren't logged in, tell them they need to log in
    else if (strpos($headers, 'HTTP/1.1 403 Forbidden') && !$user->uid) {
      $title = t('Please login to continue');
    }
    $vars['title'] = $title;

    if (!drupal_is_front_page()) {
      $vars['head_title'] = $title .' | '. $vars['site_name'];
      if ($vars['site_slogan'] != '') {
        $vars['head_title'] .= ' &ndash; '. $vars['site_slogan'];
      }
    }
  }

  // determine layout
  // 3 columns
  if ($vars['layout'] == 'both') {
    $vars['left_classes'] = 'col-left span-6';
    $vars['right_classes'] = 'col-right span-6 last';
    $vars['center_classes'] = 'col-center span-12';
    $vars['body_classes'] .= ' col-3 ';
  }
  // 2 columns
  else if ($vars['layout'] != 'none') {
    // left column & center
    if ($vars['layout'] == 'left') {
      $vars['left_classes'] = 'col-left span-6';
      $vars['center_classes'] = 'col-center span-18 last';
    }
    // right column & center
    else if ($vars['layout'] == 'right') {
      $vars['right_classes'] = 'col-right span-6 last';
      $vars['center_classes'] = 'col-center span-18';
    }
    $vars['body_classes'] .= ' col-2 ';
  }
  // 1 column
  else {

    $vars['center_classes'] = 'col-center span-24';
    $vars['body_classes'] .= ' col-1 ';
  }

  $vars['meta'] = '';
  // SEO optimization, add in the node's teaser, or if on the homepage, the mission statement
  // as a description of the page that appears in search engines
  if ($vars['is_front'] && $vars['mission'] != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['mission']) .'" />'."\n";
  }
  else if (isset($vars['node']->teaser) && $vars['node']->teaser != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['node']->teaser) .'" />'."\n";
  }
  else if (isset($vars['node']->body) && $vars['node']->body != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['node']->body) .'" />'."\n";
  }
  // SEO optimization, if the node has tags, use these as keywords for the page
  if (isset($vars['node']->taxonomy)) {
    $keywords = array();
    foreach ($vars['node']->taxonomy as $term) {
      $keywords[] = $term->name;
    }
    $vars['meta'] .= '<meta name="keywords" content="'. implode(',', $keywords) .'" />'."\n";
  }

  // SEO optimization, avoid duplicate titles in search indexes for pager pages
  if (isset($_GET['page']) || isset($_GET['sort'])) {
    $vars['meta'] .= '<meta name="robots" content="noindex,follow" />'. "\n";
  }

  /* I like to embed the Google search in various places, uncomment to make use of this
  // setup search for custom placement
  $search = module_invoke('google_cse', 'block', 'view', '0');
  $vars['search'] = $search['content'];
  */
  
  /* to remove specific CSS files from modules use this trick
  // Remove stylesheets
  $css = $vars['css'];
  unset($css['all']['module']['sites/all/modules/contrib/plus1/plus1.css']);
  $vars['styles'] = drupal_get_css($css);   
  */

}

/**
 * Intercept node template variables
 *
 * @param $vars
 *   A sequential array of variables passed to the theme function.
 */

I already have this function in there.
How would I add a second preprocess_page function to the template.php file cause I get an error white screen that say the preprocess_page cannot be declared twice.

thanks so much!

alienresident’s picture

@ naeluh
Yes, you can't have two functions named the same!

Paste this in at the bottom of your theme's preprocessor function see example

 $vars['styles'] = drupal_get_css($css);   
  */
PASTE HERE
}

CODE TO PASTE

  global $base_url; 
  $video_width = $vars['node']->field_video[0]['data']['width'];
  $video_height = $vars['node']->field_video[0]['data']['height'];        
  if(empty($video_height)){
    /* If there is no height set a default height */
    $video_height = 360;
  }  
  if(empty($video_width)){
    /* If there is no width set a default width */  
    $video_width = 640;
  }      
  $player_height = $video_height; 
  $filepath = $vars['node']->field_video[0]['filepath'];
  /* Create absolute path */  
  global $base_url;
  $video_path = $base_url . '/' . $filepath;
  
  if(!empty($vars['node']->field_video[0]['filepath'])) {
    flowplayer_add('#ipad', array(
        'clip' => array(  
        'url' => $video_path,
        'autoPlay' => FALSE, // Turn autoplay off 
        'autoBuffering' => TRUE, 
        ),
        'plugins' => array(  
        'viral' => array(  
            'url' => 'flowplayer.viralvideos.swf',
            'share' => array( 
              'description' =>  $vars['node']->title,
              ),
          ),
        ),
      ));
    $vars['video_player'] = '<a id="videoplayer" href="' . $video_path . '" style="display:block; width: ' . $video_width . 'px; height: ' . $player_height . 'px"></a>';
   }   

This way you are just extending your preprocessor function.
Note: I rename all the $variables in my code $vars to match the blueprint style, so make sure you copy this code and not the top example

Don't forget to clear you cache and theme registry just in case.

naeluh’s picture

thanks
I added the code and cleared the cache
I added the code below tod the node.tpl.php file and it displays just the title of the node.

<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block-features">

<?php if ($page == 0): ?>
  <h2><a href="<?php print $node_url ?>" title=""</a></h2>
<?php endif; ?>

  <div class="content clear-block-features">

    <?php print $video_player ?>
  </div>

</div>

When I put this print $content in the node.tpl.php file it shows the player and it works good but no viral video share, embed, email links in the player ?
I am not sure if its finding the flowplayer.viralvideos.swf I checked the name of the file its right
heres the link to the page in question it contains the node.tpl.php file that is show below
http://www.flaunt.com/flaunt/anna

<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block-features">

<?php if ($page == 0): ?>
  <h2><a href="<?php print $node_url ?>" title=""</a></h2>
<?php endif; ?>

  <div class="content clear-block-features">
   <?php print $content ?>
    <?php print $video_player ?>
  </div>

</div>

thanks again for all your help

alienresident’s picture

@naeluh

The flowplayer doesn't seem to be calling the viral video plugin.
If you look at your source you'll see

<script type="text/javascript"> 
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, 
[...]
 "plugins": { "controls": { "backgroundColor": "#3d2d49", "buttonColor": "#e0d152", "timeColor": "#fbe846", "progressColor": "#b154f2", "play": true, "scrubber": true, "time": true, "mute": true, "volume": true, "fullscreen": true, "stop": false, "backgroundGradient": "none", "borderRadius": "23" } } } } });
//--><!]]>
</script> 

Where's on the site I worked it's:

<script type="text/javascript"> 
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, 
[...]
 plugins": { "viral": { "url": "flowplayer.viralvideos.swf", "share": { "description": " from example.com", "livespaces": false } }, "controls": { "backgroundColor": "#202908", "sliderColor": "#a2bf54", "buttonColor": "#33410C", "buttonOverColor": "#33410C", "durationColor": "#dddddd", "timeColor": "#a2bf54", "progressColor": "#a2bf54", "bufferColor": "#aaaaaa", "play": true, "scrubber": true, "time": true, "mute": true, "volume": true, "fullscreen": true, "stop": false, "backgroundGradient": "medium" } } } } });
//--><!]]>
</script> 

I suspect that the theme is still cached in the theme registry and you need to rebuild that and not just empty drupal's cache or the browser's cache
http://drupal.org/node/173880#theme-registry

If that works can you let the thread know.

naeluh’s picture

I just cleared the cache in the performance area and it is still not returning the viral video plugin I cleared the theme registry also again.
Let me know I can provide anymore information to help get this goin. thanks

naeluh’s picture

Is it possible that its cause my path is /var/www/modules/flowplayer/flowplayer/flowplayer.viralvideos.swf to the plugin?

naeluh’s picture

Well I switched the path of the modules to /var/www/sites/all/modules/flowplayer/flowplayer/flowplayer.viralvideos.swf and it is still not recognizing the plugin?

thanks again for all your help

alienresident’s picture

@ naeluh

Just looking over your code again.

On your node,tpl.php

   <?php print $content ?>
    <?php print $video_player ?>

The video that's showing is coming from the $content not from $video_player that's why there is no viral video plugin.

There's an empty div in your code below the video where I think the $video_playeris trying to work.
<div id="vplayer" <="" div="">

What might be the issue is that your video cck field has a different name. In my code it's called "field_video"
so where ever you see $vars['node']->field_video replace it with $vars['node']->your_field_video_name

You can temporarily add this to your page to look into the field_video array and see the values

<?php print_r($vars['node']->field_video); ?>

Preprocessing is complicated in Drupal. I recommend reading up on it. The best place is probably from the Frontend Drupal book and they have the preprocessing chapter free online.
http://www.informit.com/articles/article.aspx?p=1336146

alienresident’s picture

@ naeluh

Just looking over your code again.

On your node,tpl.php

   <?php print $content ?>
    <?php print $video_player ?>

The video that's showing is coming from the $content not from $video_player that's why there is no viral video plugin.

There's an empty div in your HTML below the video where I think the $video_player is trying to work.
<div id="vplayer" <="" div="">

What might be the issue is that your video cck field has a different name. In my code it's called "field_video"
so where ever you see $vars['node']->field_video replace it with $vars['node']->your_field_video_name

You can temporarily add this to your page to look into the field_video array and see the values

<?php print_r($vars['node']->field_video); ?>

Preprocessing is complicated in Drupal. I recommend reading up on it. The best place is probably from the Frontend Drupal book and they have the preprocessing chapter free online.
http://www.informit.com/articles/article.aspx?p=1336146

naeluh’s picture

I also noticed that the default sizing in the template.php file is being overridden by the video module, it seems like it is just moving right past the function. -

this is what I have in as the function_preprocess_page -


<?php>
function blueprint_preprocess_page(&$vars ,$variables) {  
  global $user;
  $vars['path'] = base_path() . path_to_theme() .'/';
  $vars['user'] = $user;

  //Play nicely with the page_title module if it is there.
  if (!module_exists('page_title')) {
    // Fixup the $head_title and $title vars to display better.
    $title = drupal_get_title();
    $headers = drupal_set_header();
    
    // wrap taxonomy listing pages in quotes and prefix with topic
    if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) {
      $title = t('Topic') .' &#8220;'. $title .'&#8221;';
    }
    // if this is a 403 and they aren't logged in, tell them they need to log in
    else if (strpos($headers, 'HTTP/1.1 403 Forbidden') && !$user->uid) {
      $title = t('Please login to continue');
    }
    $vars['title'] = $title;

    if (!drupal_is_front_page()) {
      $vars['head_title'] = $title .' | '. $vars['site_name'];
      if ($vars['site_slogan'] != '') {
        $vars['head_title'] .= ' &ndash; '. $vars['site_slogan'];
      }
    }
  }

  // determine layout
  // 3 columns
  if ($vars['layout'] == 'both') {
    $vars['left_classes'] = 'col-left span-6';
    $vars['right_classes'] = 'col-right span-6 last';
    $vars['center_classes'] = 'col-center span-12';
    $vars['body_classes'] .= ' col-3 ';
  }
  // 2 columns
  else if ($vars['layout'] != 'none') {
    // left column & center
    if ($vars['layout'] == 'left') {
      $vars['left_classes'] = 'col-left span-6';
      $vars['center_classes'] = 'col-center span-18 last';
    }
    // right column & center
    else if ($vars['layout'] == 'right') {
      $vars['right_classes'] = 'col-right span-6 last';
      $vars['center_classes'] = 'col-center span-18';
    }
    $vars['body_classes'] .= ' col-2 ';
  }
  // 1 column
  else {

    $vars['center_classes'] = 'col-center span-24';
    $vars['body_classes'] .= ' col-1 ';
  }

  $vars['meta'] = '';
  // SEO optimization, add in the node's teaser, or if on the homepage, the mission statement
  // as a description of the page that appears in search engines
  if ($vars['is_front'] && $vars['mission'] != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['mission']) .'" />'."\n";
  }
  else if (isset($vars['node']->teaser) && $vars['node']->teaser != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['node']->teaser) .'" />'."\n";
  }
  else if (isset($vars['node']->body) && $vars['node']->body != '') {
    $vars['meta'] .= '<meta name="description" content="'. blueprint_trim_text($vars['node']->body) .'" />'."\n";
  }
  // SEO optimization, if the node has tags, use these as keywords for the page
  if (isset($vars['node']->taxonomy)) {
    $keywords = array();
    foreach ($vars['node']->taxonomy as $term) {
      $keywords[] = $term->name;
    }
    $vars['meta'] .= '<meta name="keywords" content="'. implode(',', $keywords) .'" />'."\n";
  }

  // SEO optimization, avoid duplicate titles in search indexes for pager pages
  if (isset($_GET['page']) || isset($_GET['sort'])) {
    $vars['meta'] .= '<meta name="robots" content="noindex,follow" />'. "\n";
  }

  /* I like to embed the Google search in various places, uncomment to make use of this
  // setup search for custom placement
  $search = module_invoke('google_cse', 'block', 'view', '0');
  $vars['search'] = $search['content'];
  */
  
  /* to remove specific CSS files from modules use this trick
  // Remove stylesheets
  $css = $vars['css'];
  unset($css['all']['module']['sites/all/modules/contrib/plus1/plus1.css']);
  $vars['styles'] = drupal_get_css($css);   
  */
  global $base_url; 
  $video_width = $vars['node']->field_video[0]['data']['width'];
  $video_height = $vars['node']->field_video[0]['data']['height'];        
  if(empty($video_height)){
    /* If there is no height set a default height */
    $video_height = 360;
  }  
  if(empty($video_width)){
    /* If there is no width set a default width */  
    $video_width = 640;
  }      
  $player_height = $video_height; 
  $filepath = $vars['node']->field_video[0]['filepath'];
  /* Create absolute path */  
  global $base_url;
  $video_path = $base_url . '/' . $filepath;
  
  if(!empty($vars['node']->field_video[0]['filepath'])) {
    flowplayer_add('#ipad', array(
        'clip' => array(  
        'url' => $video_path,
        'autoPlay' => FALSE, // Turn autoplay off 
        'autoBuffering' => TRUE, 
        ),
        'plugins' => array(  
        'viral' => array(  
            'url' => 'flowplayer.viralvideos.swf',
            'share' => array( 
              'description' =>  $vars['node']->title,
              ),
          ),
        ),
      ));
    $vars['video_player'] = '<a id="videoplayer" href="' . $video_path . '" style="display:block; width: ' . $video_width . 'px; height: ' . $player_height . 'px"></a>';
   } 
  
 }
<?>
naeluh’s picture

Priority: Major » Critical

Weird something must be happening to that field cause it is not returning any results on the page when I add the print_r($vars['node']->field_fv);

Also I change the template to reflect the field item name and then cleared the cache still no result or change. I am going to look at the link you provided and see if theres any thing else that I can figure out. Let me know if you can think of anything else and thanks again for your help.

Also what video module are you using and do you have swftools installed?

alienresident’s picture

@ naeluh

I am using the video module 6.x-4.2-alpha2 http://drupal.org/project/video and I don't have swftools installed

I was unclear, the code below should go at the end of the preprocessing function (before the last closing brace) in template.php

<?php
 print_r($vars['node']->field_fv); 
?>
<?php
function blueprint_preprocess_page(&$vars ,$variables) {  
 //skipping the default Blueprint code  [...] 
  global $base_url; 
  $video_width = $vars['node']->field_fv[0]['data']['width'];
  $video_height = $vars['node']->field_fv[0]['data']['height'];        
  if(empty($video_height)){
    /* If there is no height set a default height */
    $video_height = 360;
  }  
  if(empty($video_width)){
    /* If there is no width set a default width */  
    $video_width = 640;
  }      
  $player_height = $video_height; 
  $filepath = $vars['node']->field_fv[0]['filepath'];
  /* Create absolute path */  
  global $base_url;
  $video_path = $base_url . '/' . $filepath;
  if(!empty($vars['node']->field_fv[0]['filepath'])) {
    flowplayer_add('#ipad', array(
        'clip' => array(  
        'url' => $video_path,
        'autoPlay' => FALSE, // Turn autoplay off 
        'autoBuffering' => TRUE, 
        ),
        'plugins' => array(  
        'viral' => array(  
            'url' => 'flowplayer.viralvideos.swf',
            'share' => array( 
              'description' =>  $vars['node']->title,
              ),
          ),
        ),
      ));
    $vars['video_player'] = '<a id="videoplayer" href="' . $video_path . '" style="display:block; width: ' . $video_width . 'px; height: ' . $player_height . 'px"></a>';
   } 
  /* Temporarily added to see what variables are in the field (finding the path being the most important) */
  print_r($vars['node']->field_fv); 
 }
?>

What you are trying to do is find out the variables of the field_fv that are being send to $content and override them. You'll also want to exclude that field from displaying. Otherwise you'll have 2 videos on the page. Go to http://YOURSITE.COM/admin/content/node-type/YOUR_CONTENT-TYPE/display and check the exclude box on the node field type.

naeluh’s picture

Here is the ouput of the vars

Array ( [0] => Array ( [fid] => 2416 [uid] => 1 [filename] => Anna_FLAUNT_Web.mp4 [filepath] => sites/default/files/videos/Anna_FLAUNT_Web.mp4 [filemime] => video/mp4 [filesize] => 16659901 [status] => 1 [timestamp] => 1300811650 [list] => 1 [data] => Array ( [dimensions] => 640x480 [player_dimensions] => 640x480 ) [nid] => 614 [view] =>) )

It looks like its the filepath variable is right ?
I turned off the cdn module didn't do anything.

alienresident’s picture

Yes, the filepath is to the local stored video i.e on your site not on a CDN

I haven't worked with the CDN module. I am assuming it's this module http://drupal.org/project/cdn

If you need to get it to work with with the CDN video you'll need to find it's filepath. I would look into all the variables on the node by editing the print_r in the preprocess function to this.

<?php
 print_r($vars['node']); 
?>

BTW it's much easier to see the variables if you view source on your page. It lays out the variables nicely using whitespace that isn't shown on the page.

You may want to use the devel themer module http://drupal.org/project/devel_themer for all of this, as it's cleaner and easier to read the output, watch the sceencast http://drupal.org/node/209561

Once you found the file path change this part:

<?php
$filepath = $vars['node']->field_fv[0]['filepath'];
  /* Create absolute path */  
  global $base_url;
  $video_path = $base_url . '/' . $filepath;
?>
To:
<?php
   /* I am guessing it will be a full url rather than a  local path 
    so you won't need to concatenate the site's base url to the 
    file path like on the example above */
  $video_path = $vars['node']->field_CDN[0]['url'];  //This is a guess can't tell without the actual output from the node
?>

The issue queue is not the best way to do this. Hit me up on IRC #drupal-support. I am alienresident there too. I'll be there until about 7pm EST today. However, when it's sorted out, will you post your solution to this issue queue for others, Thanks.

lismail’s picture

subscribing

Rhino’s picture

subscribing

Jacob’s picture

+1