You are here

function video_filter_myspace in Video Filter 6.3

Same name and namespace in other branches
  1. 5.2 video_filter.codecs.inc \video_filter_myspace()
  2. 6.2 video_filter.codecs.inc \video_filter_myspace()
  3. 7.3 video_filter.codecs.inc \video_filter_myspace()

Callback for MySpace codec.

See also

video_filter_codec_info()

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

File

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

Code

function video_filter_myspace($video) {

  // The last match is the ID we need.
  $last = count($video['codec']['matches']);
  $video['source'] = 'http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $video['codec']['matches'][$last - 1];
  return video_filter_flash($video, $params);
}