Why is iphone automatically starts playing the video?

Hello!
Tell me why on iOS in the browser with these settings does not start automatic video?
<div class="slider">
 <video class="slider-video" autoplay loop muted>
 <source type="video/mp4">
</video>
</div>


sliderVideo.setAttribute('src', "video.mp4");
sliderVideo.play();
March 23rd 20 at 19:11
2 answers
March 23rd 20 at 19:13
Solution
Here it is:


These 3 attribute for the video tag:
playsinline autoplay muted
Works. - Gus_Ha commented on March 23rd 20 at 19:16
thank you, playsinline helped. - jacques commented on March 23rd 20 at 19:19
March 23rd 20 at 19:15
Solution
If the answer to the previous speaker didn't help and the task is to play video inline without turning on the screen, then I recommend here is plugincheck. In his time great helped for older versions of Joseph. It's nice that only works in the absence of native video playback by the browser.

Find more questions by tags SafariJavaScriptCSS