You are here

function theme_emvideo_myspace_flash in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emvideo/providers/myspace.inc \theme_emvideo_myspace_flash()
2 theme calls to theme_emvideo_myspace_flash()
emvideo_myspace_preview in contrib/emvideo/providers/myspace.inc
emvideo_myspace_video in contrib/emvideo/providers/myspace.inc

File

contrib/emvideo/providers/myspace.inc, line 112
This include processes myspace.com media files for use by emfield.module.

Code

function theme_emvideo_myspace_flash($embed, $width, $height) {
  static $count = 0;
  if ($embed) {
    $embed = check_plain($embed);
    $width = (int) $width;
    $height = (int) $height;
    $output .= '<object height="' . $height . 'px" width="' . $width . 'px" >
      <param name="allowFullScreen" value="true"/>
      <param name="wmode" value="transparent"/>
      <param name="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $embed . ',t=1,mt=video" />
      <embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $embed . ',t=1,mt=video" width="' . $width . '" height="' . $height . '" allowFullScreen="true" type="application/x-shockwave-flash" wmode="transparent"></embed></object>';
  }
  $count++;
  return $output;
}