maikle Posted April 19, 2015 Share Posted April 19, 2015 Как ни бьюсь кроме ссылки ничего не показывает! Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 Facebook video embed codeи на основе него создать любо медиа тег, либо ббкод. Медиа тег создается из ссылки к видео если это возможно. Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 нашел, установил.... не работает! вот настройки:https?://(?:www.)?facebook.com/videos.php\?(\S+) <div id="fbvid"><div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><div class="fb-post" data-href="https://www.facebook.com/videos.php?$1" data-width="599"></div></div><br> Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 Покажите ссылку на видео. Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 Медиа-тег с iframe'ом в качестве шаблона замены (Facebook Video 1.1.4). Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 например: только в списке BB-код я фейсбук не вижу! Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 см. скрин Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 Эта ссылка на соответствует шаблона медиа-тега - https?://(?:www.)?facebook.com/videos.php\?(\S+)Судя по всему, ссылку нужно копировать из embed code. только в списке BB-код я фейсбук не вижу!Список медиа-тегов нужно смотреть в АЦ. Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 я поставил то что Вы дали: в админке все есть!у пользователя нету... Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 Вот эта ссылка - www.facebook.com/Carpcrossing/videos/672563686186950/не соответствует этому медиа-тегу - https?://(?:www.)?facebook.com/videos.php\?(\S+) Для нее шаблон медиа-тега будет выглядеть так: https?://(?:www.)?facebook.com/\S+/videos/(\d+)/? Шаблон замены (iframe) <iframe src="http://www.facebook.com/video/embed?video_id=$1" width="640" height="400" frameborder="0"></iframe> Готовый медиа-тегfacebook_video.xml 1 Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 см. скрин в этом меню что нужно выбирать? который медиа-тег нужно править?Facebook Видео или Facebook Video Embed Link to comment Share on other sites More sharing options...
maikle Posted April 19, 2015 Author Share Posted April 19, 2015 Ура!заработало! получается тег media под любое видео?а Медиа-теги настраивают каждое в отдельности? Link to comment Share on other sites More sharing options...
siv1987 Posted April 19, 2015 Share Posted April 19, 2015 который медиа-тег нужно править?Facebook Видео или Facebook Video EmbedВ этой теме представлен "Facebook Видео". а Медиа-теги настраивают каждое в отдельности?Да, каждый сервис имеет свой медиа-тег для встраивания видео.Внешний вид -> Медиа-теги Link to comment Share on other sites More sharing options...
Атаман Posted August 18, 2015 Share Posted August 18, 2015 Как сделать так, чтоб он за рамки в моб версии не вылазил. А подстраивался. спс Link to comment Share on other sites More sharing options...
newbie Posted August 18, 2015 Share Posted August 18, 2015 Как сделать так, чтоб он за рамки в моб версии не вылазил. А подстраивался. спс В мобильной версии есть код function handleEmbeddedVideo(e) { var pageWidth = $('content').getWidth() - 40; $$('.EmbeddedVideo', '.EmbeddedVideo embed').each( function(elem){ var aspectRatio = $(elem).readAttribute('height') / $(elem).readAttribute('width'); if( $(elem).readAttribute('width') > pageWidth ) { $(elem).writeAttribute( { width: pageWidth, height: pageWidth * aspectRatio }); } }); }Добавьте класс EmbeddedVideo фрейму и он будет ресайзится 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now