EmbedVideo - проба — различия между версиями

Материал из ТХАБ.РФ
Перейти к: навигация, поиск
м
м
 
Строка 43: Строка 43:
  
 
== Ссылки ==
 
== Ссылки ==
 +
* [https://www.mediawiki.org/wiki/Extension:EmbedVideo Страница расширения]
 
* [http://traditio.wiki/EmbedVideo EmvbedVideo 1.3 - традиция вики]
 
* [http://traditio.wiki/EmbedVideo EmvbedVideo 1.3 - традиция вики]
 
* [https://github.com/Alexia/mediawiki-embedvideo/blob/master/classes/VideoService.php - файл EmbedVideo 2.2.8 где добавить VK]
 
* [https://github.com/Alexia/mediawiki-embedvideo/blob/master/classes/VideoService.php - файл EmbedVideo 2.2.8 где добавить VK]
  
 
[[Категория:ТХАБ]]
 
[[Категория:ТХАБ]]

Текущая версия на 05:26, 17 января 2016

ru tube

'rutube' => [ 'embed' => '<iframe src="//rutube.ru/play/embed/%1$s" width="%2$d" height="%3$d" frameborder="0" allowfullscreen="true"></iframe>', 'default_width' => 640, 'default_ratio' => 1.77777777777778, // (16 / 9) 'https_enabled' => true, 'url_regex' => [ '#rutube\.ru/video/([a-zA-Z0-9]+)(?:/\S+?)?#is' ], 'id_regex' => [ '#^([a-zA-Z0-9]+)$#is' ] ],

Vk

'vk' => [ 'embed' => '<iframe src="//vk.com/play/embed/%1$s" width="%2$d" height="%3$d" frameborder="0" allowfullscreen="true"></iframe>', 'default_width' => 640, 'default_ratio' => 1.77777777777778, // (16 / 9) 'https_enabled' => true, 'url_regex' => [ '#vk\.com/video/([a-zA-Z0-9]+)(?:/\S+?)?#is' ], 'id_regex' => [ '#^([a-zA-Z0-9]+)$#is' ] ],


VK традиция

'vkontakte' => array(

       'id_pattern'     => '/^-?[01-9]+$/',
       'url'            => 'http://vkontakte.ru/video_ext.php?oid=$1&id=$4&hash=$5&hd=1',
       'default_width'  => 304,
       'default_height' => 180,

'noembed' => true

   ),

Ссылки