2016-04-21 7 views
0

in meiner Seite habe ich prettyphoto für iframe und youtube Link hinzugefügt. aber jetzt Problem ist in YouTube Link Abschnitt Vollbild-Option funktioniert nicht, es heißt "Vollbild ist nicht verfügbar", aber wenn ich Lity - Lightweight Lightweight dann Vollbild-Arbeit verwenden. aber als lity lightbox haben limitation für window size ich nicht verwenden.prettyphoto youtube Vollbild funktioniert nicht

HTML

<a href="http://xxxxx.com/video-popup/?vpid=46&amp;iframe=true&amp;width=600&amp;height=320" rel="prettyPhotov[iframes]" title=" Hotel Granvia Kyoto" class="flaticon-film51"></a> 

JS

$(".videoiteam a[rel^='prettyPhotov']").prettyPhoto({ 

     overlay_gallery: false, 

     theme: 'dark_square', 

     social_tools: false, 

     slideshow:false, 

     show_title: false 

     }); 

angebracht ist für enter image description here

Antwort

5

Try allowfullscreen Attribut iframe_markup Eigenschaft hinzuzufügen:

$("a[rel^='prettyPhoto']").prettyPhoto({ 
    overlay_gallery: false, 
    show_title: false, 
    hideflash: true, 
    social_tools: "", 
    iframe_markup: "<iframe src='{path}' width='{width}' height='{height}' frameborder='no' allowfullscreen='true'></iframe>", 
    deeplinking: false 
}); 

..... 

<a href="https://www.youtube.com/watch?v=Vh0mGLpbIvI" rel="prettyPhoto"><img src="http://img.youtube.com/vi/Vh0mGLpbIvI/default.jpg"></a> 
Verwandte Themen