You are here

function brightcove_media_parse_uri in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.6 brightcove_media/brightcove_media.module \brightcove_media_parse_uri()

Parses components from a brightcove:// or brightcove-playlist:// uri.

Parameters

string $uri:

bool $ensure:

Return value

array|bool

See also

MediaBrightcoveVideoStreamWrapper::brightcoveValues()

2 calls to brightcove_media_parse_uri()
brightcove_media_file_formatter_image_view in brightcove_media/brightcove_media.module
The brightcove_media_image file formatter view callback.
brightcove_media_file_uri_to_object in brightcove_media/brightcove_media.module
Helper function MediaInternetBrightcoveHandler class getFileObject method.

File

brightcove_media/brightcove_media.module, line 889
This module provide the hook implementations for the integration with Media module.

Code

function brightcove_media_parse_uri($uri, $ensure = FALSE) {
  return ($wrapper = _brightcove_media_get_wrapper($uri)) ? $wrapper
    ->brightcoveValues($ensure) : FALSE;
}