You are here

function video_filter_dailymotion in Video Filter 7.3

Same name and namespace in other branches
  1. 5.2 video_filter.codecs.inc \video_filter_dailymotion()
  2. 5 video_filter.codecs.inc \video_filter_dailymotion()
  3. 6.3 video_filter.codecs.inc \video_filter_dailymotion()
  4. 6 video_filter.codecs.inc \video_filter_dailymotion()
  5. 6.2 video_filter.codecs.inc \video_filter_dailymotion()

Callback for DailyMotion codec.

See also

video_filter_codec_info()

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

File

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

Code

function video_filter_dailymotion($video) {
  $attributes = array(
    'autoplay' => $video['autoplay'] ? 'autoplay=1' : 'autoplay=0',
  );
  $video['source'] = '//www.dailymotion.com/swf/' . $video['codec']['matches'][1] . '?' . implode('&', $attributes);
  return video_filter_flash($video);
}