You are here

function emaudio_soundcloud_preview in Media: SoundCloud 6

Implementation of hook_emaudio_PROVIDER_preview().

This actually displays the preview-sized video we want, commonly for the teaser.

Parameters

$embed: The video code for the audio to embed.

$width: The width to display the audio.

$height: The height to display the audio.

$field: The field info from the requesting node.

$item: The actual content from the field.

Return value

The html of the embedded audio.

File

providers/soundcloud.inc, line 244
This include processes Soundcloud audio files for use by emaudio.module.

Code

function emaudio_soundcloud_preview($embed, $width, $height, $field, $item, $node, $autoplay) {
  return theme('emaudio_soundcloud_flash', $item, $embed, $width, $height, $autoplay, TRUE);
}