You are here

function media_sharestream_media_parse in Media: ShareStream 7

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_sharestream.module, line 87
Provides a stream wrapper and formatters appropriate for accessing and displaying ShareStream videos.

Code

function media_sharestream_media_parse($embed_code) {
  $handler = new MediaInternetShareStreamHandler($embed_code);
  return $handler
    ->parse($embed_code);
}