ช่วยเหลือ

0

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

Avatar
Filippo

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 Answer
0
Avatar
Hilar Andikkadavath
Best Answer

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

5 ความคิดเห็น
Avatar
Discard
Avatar
Filippo
-

The first source is mp4

Avatar
Hilar Andikkadavath
-

remove other sources

Avatar
Filippo
-

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

Avatar
Hilar Andikkadavath
-
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
Filippo
-

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...