You are here

function video_filter_vimeo_html5 in Video Filter 6.3

Same name and namespace in other branches
  1. 7.3 video_filter.codecs.inc \video_filter_vimeo_html5()

HTML5 callback for Vimeo codec.

See also

video_filter_codec_info()

1 string reference to 'video_filter_vimeo_html5'
video_filter_codec_info in ./video_filter.codecs.inc
Implements hook_codec_info().

File

./video_filter.codecs.inc, line 521
This file contains all codecs provided by Video Filter.

Code

function video_filter_vimeo_html5($video) {
  $video['source'] = 'http://player.vimeo.com/video/' . $video['codec']['matches'][1] . ($video['autoplay'] ? '?autoplay=1' : '');
  return video_filter_iframe($video);
}