You are here

public function MediaBrightcovePlaylistStreamWrapper::getVideoID in Brightcove Video Connect 7.4

Get a video id.

Return value

null

2 calls to MediaBrightcovePlaylistStreamWrapper::getVideoID()
MediaBrightcovePlaylistStreamWrapper::getOriginalThumbnailPath in brightcove_media/includes/MediaBrightcovePlaylistStreamWrapper.inc
Get the thumbnail path.
MediaBrightcovePlaylistStreamWrapper::interpolateUrl in brightcove_media/includes/MediaBrightcovePlaylistStreamWrapper.inc
Interpolate an url.

File

brightcove_media/includes/MediaBrightcovePlaylistStreamWrapper.inc, line 58
Stream wrapper for Brightcove playlists.

Class

MediaBrightcovePlaylistStreamWrapper
@file Stream wrapper for Brightcove playlists.

Code

public function getVideoID() {
  if ($url = parse_url($this->uri)) {
    if ($url['scheme'] == 'brightcove-playlist' && is_numeric($url['host'])) {
      return $url['host'];
    }
  }
  return NULL;
}