2013-08-29 75 views
0

是否有可能在fotorama上定製視頻,我無法將視頻嵌入到youtube,vimeo或任何其他視頻服務中,我需要有一個簡單的視頻標籤才能顯示視頻。Fotorama定製視頻

回答

0

在YouTube和Vimeo內置支持:
http://fotorama.io/customize/video/

您還可以,如果你有IFRAME鏈接和預覽添加任何視頻。這裏是Dailymotion視頻:
http://fotorama.io/examples/video-custom.html

Fotorama可以在iframe中顯示視頻。所以你必須創建單獨的頁面與autoplaying視頻拉伸全頁(寬度&高度100%)。然後鏈接到這個網頁中fotorama:

<div class="fotorama"> 
    <a href="/link/to/the/video" data-video="true" data-img="preview.jpg"><img src="preview_small.jpg"></a> 
</div> 

現場演示:
http://artpolikarpov.github.io/fotorama/test/video-flowplayer.html

而且從這個例子中三個獨立的視頻:
http://artpolikarpov.github.io/fotorama/test/flowplayer/1.html http://artpolikarpov.github.io/fotorama/test/flowplayer/2.html http://artpolikarpov.github.io/fotorama/test/flowplayer/3.html

0

如果你是插入一個帖子:

[gallery ids= 750,749,748,747,746,745,744,743,742,741" width="100%" ratio="1024/768" autoplay="3000" stopautoplayontouch="false" loop="true" transition="slide" keyboard="true"] 

OR

<div class="fotorama" data-width="100%" data-ratio="1024/768" data-autoplay="3000" data-stopautoplayontouch="false" data-loop="true" data-transition="slide" data-keyboard="true"> 
<a href="youtube link">jets</a> 

<img src="image url" class="aligncenter size-medium wp-image-745" /> 

<img src="image url" class="aligncenter size-full wp-image-743" /> 

<img src="image url" class="aligncenter size-full wp-image-741" /></a> 
</div>