Help

0

How can I use html video tag on safari (odoo 11)?

Avatar
Matranga SRL

I've checked a lot of post on the same argument, but I didn't find a solution.

My html code is the following (it is an Odoo 11 web page):

<video playsinline="true" autoplay="true" muted="true" loop="true" 
    class="bckgroundMyVideo" poster="/web/image/5016" preload="auto">
    <source src="/web/image/5644" type="video/mp4"/>
    <source src="/web/image/5658" type="video/webm"/>
</video>

it is working on chrome/firefox/edge, but not on Ipad or Iphone, I've tryed a lot of combination, but as of now I'm not able to let it work on safari.

Any suggestion?

thanks

Avatar
Discard
1 答案
0
Avatar
Hilar AK
Best Answer

For Safari latest versions only MP4 is supported for autoplay. Change it accordingly

5 Comments
Avatar
Discard
Avatar
Matranga SRL
-

The first source is mp4

Avatar
Hilar AK
-

remove other sources

Avatar
Matranga SRL
-

It is not working just with mp4 source, on Ipad it doesn't work neither with Safari or Chrome...

Avatar
Hilar AK
-
It's only the solution for video tag issue on safari. Because it's not supported. Check there is any other issue

On Tue, 12 Mar 2019, 3:47 pm Filippo Scifo, <webmaster@matranga.it> wrote:

It is not working just with mp4 source, on Ipad it doesn't work neither with Safari or Chrome...

Sent by Odoo S.A. using Odoo.

Avatar
Matranga SRL
-

if I try to connect directly to the video in the address bar, with Ipad I'm not able to disply the video (neither with safari or chrome). From windows I'm able to see the video with chrome/edge/firefox, so the issue seems linked to IOS not to safari...