Przeglądaj źródła

iframe dans embed-responsive

François 6 lat temu
rodzic
commit
f90d4f2443

+ 1 - 1
src/AppBundle/Entity/MediaVideo.php

@@ -239,7 +239,7 @@ class MediaVideo
 
     public function video()
     {
-        $video = "<iframe width='100%' height='100%' src='".$this->embedUrl()."'  frameborder='0'  allowfullscreen></iframe>";
+        $video = "<iframe src='".$this->embedUrl()."'  allowfullscreen></iframe>";
         return $video;
     }
 

+ 1 - 1
src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

@@ -80,7 +80,7 @@
                         </div>
                         <div class="card-body">
                             {% if film.mediaVideo.video is defined %}
-                                <div style="height :200px ;width :300px;">
+                                <div class="embed-responsive embed-responsive-4by3">
                                     {{ film.mediaVideo.video|raw }}
                                 </div>
                             {% else %}