private function Media23VideoStreamWrapper::getEmbedInfo in Media 23video 7
Get the value of response parameter.
Parameters
string $param: The name of parameter from response.
array $params: Parameters for {@link getOEmbed()} method.
Return value
string Parameter value.
2 calls to Media23VideoStreamWrapper::getEmbedInfo()
- Media23VideoStreamWrapper::getHtml in includes/
Media23VideoStreamWrapper.inc - Get the video HTML.
- Media23VideoStreamWrapper::getOriginalThumbnailPath in includes/
Media23VideoStreamWrapper.inc - Get the external video thumbnail.
File
- includes/
Media23VideoStreamWrapper.inc, line 89 - Definition of Media23VideoStreamWrapper object.
Class
- Media23VideoStreamWrapper
- Class Media23VideoStreamWrapper.
Code
private function getEmbedInfo($param = '', array $params = array()) {
$parameters = $this
->get_parameters();
$info = array();
if (!empty($parameters)) {
$handler = new Media23VideoInternetHandler("http://{$parameters['s']}/video/{$parameters['v']}");
$info = $handler
->getOEmbed($params);
}
return isset($info[$param]) ? $info[$param] : '';
}