video_object()) * $node is the Drupal node object */ $width = intval($video->player_width); $height = intval($video->player_height); $poster = check_plain($video->thumbnail->url); $autoplayattr = $video->autoplay ? ' autoplay="autoplay"' : ''; $preload = 'none'; if ($video->autobuffering) { $preload = 'auto'; } elseif (variable_get('video_metadata', FALSE)) { $preload = 'metadata'; } $codecs = array( 'video/mp4' => 'avc1.42E01E, mp4a.40.2', 'video/webm' => 'vp8, vorbis', 'video/ogg' => 'theora, vorbis', 'application/ogg' => 'theora, vorbis', 'video/ogv' => 'theora, vorbis', 'video/quicktime' => 'avc1.42E01E, mp4a.40.2', ); $flashtype = null; ?>