0
I’m having difficulties to incorporate video from my site in modal, I put one on youtube and it worked but when I try to put my mp4 in error.
I know the error is here
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="assets/videos/flyer02.mp4" allowfullscreen></iframe>
</div>
I tried to use the tags
<video controls>
<source src="assets/videos/flyer02.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
and also not uploaded... I’ve uploaded the site to better understand www.derlibatista.com.br , thanks for the help
<div class="portfolio-modal modal fade" id="modalflyersanimados" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="close-modal" data-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project Details Go Here-->
<h3 class="text-uppercase">Flyers Animados</h3>
<p class="item-intro text-muted">Flyer com áudio e animação.</p>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/v64KOxKVLVg" allowfullscreen></iframe>
</div> <br />
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="assets/videos/flyer02.mp4" allowfullscreen></iframe>
</div><br />
Friend. I tested your two codes here and they both worked. Try to see if the file path is right or if the video extension is mp4 itself. Also try outside the modal to see if it works.
– Gato de Schrödinger
Running on my tmb pc works , but at the root of the site no, I put out the modal and tmb did not appear, could be something with the mp4 version?
– vini
Try another format to confirm.
– Gato de Schrödinger
Really the problem was with the video, thanks for helping Schrödinger’s Cat!
– vini
Nothing, brother. You solved it.Hug!
– Gato de Schrödinger