I
I
IliaMal2022-03-15 18:00:09
JavaScript
IliaMal, 2022-03-15 18:00:09

How to prevent fancybox video from autoplaying?

Hello.

The html contains the video tag:

<video height="auto" class="media__video" preload="none" controls poster="<?=$value['poster']?>" >
       <source src="<?=$value['src']?>" type="video/mp4">
 </video>


When opening this html as a page, the video does not play, but if the same content is opened with a pop-up, through fancybox, the video immediately starts playing.
On the Internet, google only how to disable autoplay for youtube videos
youtube : {
   autoplay: 0
},

this method does not help.

How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sasha, 2022-03-15
@userAlexander

Additional attributes are definitely not added?
For example autoplay

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question