You are here

function theme_video_player in Video 5

Same name and namespace in other branches
  1. 6 video.module \theme_video_player()
  2. 6.2 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 1064
Display video in Quicktime MOV, Realmedia RM, Flash FLV & SWF, or Windows Media WMV formats.

Code

function theme_video_player($node) {

  // include video.js file for Internet Explorer fixes
  theme('video_get_script');
  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;
}