4
Good evening, I’m making a website and in the middle of it I put a video that I want to start and restart automatically without the user having to click the play button or the restart button, can anyone help me Obs: I tried using the autoplay attribute and it didn’t work? Aki is the code:
Pokemon Generations
<body style="background-image: url(Fundo/fundo_pokemon_branco.jpg)">
<nav class="navbar navbar-expand-lg ml-5 mr-5 navbar-dark mb-5" style="background-color:#38102b" >
<div class="container">
<a class="navbar-brand h1 mb-0" href="site_inicial.htm"><img src="Logo/shining_legends.png"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSite">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="navbarSite" >
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="#"><button type="button" class="btn btn-outline-warning" class="ml-1"><img src="Icones/icone_personagens_gold.png" >Personagens</button></a></li>
<li class="nav-item"><a class="nav-link" href="#"><button type="button" class="btn btn-outline-warning" class="ml-1"><img src="Icones/icone_comojogar_gold.png" >Como jogar</button></a></li>
<li class="nav-item"><a class="nav-link" href="#"><button type="button" class="btn btn-outline-warning" class="ml-1"><img src="Icones/icone_jogar_gold1.png" >Jogar</button></a></li>
<li class="nav-item"><a class="nav-link" href="#"><button type="button" class="btn btn-outline-warning" class="ml-1"><img src="Icones/icone_atualizacoes_gold.png" >Atualizações</button></a></li>
<li class="nav-item mr-5"><a class="nav-link" href="#"><button type="button" class="btn btn-outline-warning" class="ml-1"><img src="Icones/icone_quemsou_gold.png" >Quem Sou</button></a></li>
<li class="nav-item " id="charmander"><a class="navbar-brand h1 mb-0 pulo" target="_blank" href="https://www.youtube.com/channel/UC6VdsMMnL-GdcoKc9qZEtQA?disable_polymer=true"><img src="Icones/icone_charmander.png"></a></li>
<li class="nav-item"><a class="navbar-brand h1 mb-0 pulo " target="_blank" href="http://api.whatsapp.com/send?1=pt_BR&phone=5584996011922"><img src="Icones/icone_bulbasaur.png"></a></li>
<li class="nav-item"><a class="navbar-brand h1 mb-0 pulo" target="_blank" href="https://twitter.com/LegendsShining"><img src="Icones/icone_squirtle.png"></a></li>
</ul>
</div>
</div>
</nav>
<video controls src="Fundo/greninja.mp4" type="video/mp4 controls" height="180%"width="100%">
</video>
</body>
You were able to play automatically when the page opens and when the video ends does not repeat?
– Bart
I wasn’t able to do anything, but it worked out here, anyway thanks :)
– Akali
What I’m still in doubt is why sometimes the video loads and sometimes n
– Akali