You are here

function theme_video_player in Video 6.2

Same name and namespace in other branches
  1. 5 video.module \theme_video_player()
  2. 6 video.module \theme_video_player()

theme function to control which player is presented

Parameters

$node: node object

Return value

html

1 theme call to theme_video_player()
video_view in ./video.module
Implementation of hook_view().

File

./video.module, line 1194
video.module

Code

function theme_video_player($node) {

  // include video.js file for Internet Explorer fixes

  //theme('video_get_script');
  drupal_add_js(drupal_get_path('module', 'video') . '/video.js');
  if (variable_get('video_playcounter', 1)) {
    db_query("UPDATE {video} SET play_counter = play_counter + 1 where vid = %d", $node->vid);

    //Increment play counter.
  }
  _video_scale_video($node);
  $output = module_invoke('video_' . $node->vtype, 'v_play', $node);
  return $output;
}