A
A
Alexander Stepanov2016-02-16 18:57:59
JavaScript
Alexander Stepanov, 2016-02-16 18:57:59

How to embed video in Safari?

Greetings.
There is a site: DOM.world , which has a video on the main page.
So, the bottom line is that for some reason it does not want to work in Safari.
What is the problem?
Help me please!
Sincerely, Alexander.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Beloborodov, 2016-02-16
@zloycoder

<video autoplay="autoplay" loop="loop" preload="auto" poster>
  <source src="video/forest-webm.webm" type="video/webm" media="all and (min-width:960px)">
  <source src="video/forest-mp4.mp4" type="video/mp4" media="all and (min-width:960px)">
</video>

You need 2 types of webm and mp4
_______
And my Safari works 99e660d73a384580b657fa98833c0893.png
Clouds fly and everything is as it should

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question