
08-23-2006, 03:01 AM
|
|
|
Join Date: Feb 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by nix
I just changed my google section in class_anymedia.php to this.
PHP Code:
// {{{ google()
/**
* Google Video.
* @param array media info array
*/
function google(& $mediaArray)
{
if (preg_match('/docid=([^(\&|$)]*)/i', $this->_mediaInfo['url'], $match) || preg_match('/docid\/([^(\&|$)]*)/i', $this->_mediaInfo['url'], $match) || preg_match('/video_id=([^(\&|$)]*)/i', $this->_mediaInfo['url'], $match)) {
if(intval($this->vbulletin->bf_misc_anymediaplayer[$mediaArray[1]]) & $this->vbulletin->options['anymediaplayer']) {
$this->_mediaInfo['url'] = $this->vbulletin->options['bburl'] . '/players/flvplayer.swf?file=' . $match[1] . '&site=youtube&autoStart=' . iif($this->_mediaInfo['autoplay'] == 'true', 'true', 'false');
$this->_mediaInfo['height'] += 20;
} else {
$this->_mediaInfo['url'] = 'http://video.google.com/googleplayer.swf?docid=' . $match[1];
}
$this->player($mediaArray);
} else {
$this->_mediaInfo['type'] = 'error';
}
}
// }}}
|
will this code work for google using anymedia flash player ( not google flash player)
|