You are here

function media_soundcloud_media_parse in Media: SoundCloud 7.2

Same name and namespace in other branches
  1. 7 media_soundcloud.module \media_soundcloud_media_parse()

Implements hook_media_parse().

@todo This hook should be deprecated. Refactor Media module to not call it any more, since media_internet should be able to automatically route to the appropriate handler.

File

./media_soundcloud.module, line 58
Provides a stream wrapper and formatters appropriate for accessing and displaying SoundCloud audio.

Code

function media_soundcloud_media_parse($embed_code) {
  $handler = new MediaInternetSoundCloudHandler($embed_code);
  return $handler
    ->parse($embed_code);
}