M
M
Mikhail Mirgorodsky2021-07-02 23:02:58
Joomla
Mikhail Mirgorodsky, 2021-07-02 23:02:58

How to enable autoplay and sound in video+html5?

Good afternoon, tell me please:
I open the video, but it has no sound ...

<video id="vidos" class="img-fluid" muted preload="auto" autoplay="true" loop="true">
    <source src="/images/Silestone450.mp4" type="video/mp4">
  </video>

I'm trying to add JS:
<script>
jQuery("#vidos").prop('muted', false);
</script>

autoplay doesn't work at all.
I need to implement autoplay video on the site, but the sound is required. How to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gruznykh, 2021-07-03
@pavelcarcass

So remove the muted attribute from the code.

<video id="vidos" class="img-fluid" preload="auto" autoplay="true" loop="true">
    <source src="/images/Silestone450.mp4" type="video/mp4">
  </video>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question