Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
Webm video format doesn't work on safari (ios)

Pls, be aware that problem only exist on ios devices and with webm format. Don't say that it works when you open example on sandbox. To test it , open it on real ios devices (sandbox example , see button below).

 <video
      id="video-which-do-not-want-to-work"
      autoplay
      loop
      muted
      playsinline
      width="400"
      height="300"
      src="https://dl8.webmfiles.org/elephants-dream.webm"
    ></video>

I've spend 2 days on making it works. But nothing help. What I've tried.

  1. Play it without autoplay
  2. All examples which I found on stack says that you should add playsinline and muted
  3. Tried to use source inside of video tag with webm type
  4. Tried to imitate button click
 const button = document.createElement('button')

 button.addEventListener('click', () => {
    document.getElementById('video-which-do-not-want-to-work').play()
 })

 button.click()
  1. Also tried to add real button in html and attach onclick event function , which exectute element.play()

  2. Checked is Low power mode swithced of on my phone

  3. Prayed God

IOS version of device: 15.5

Could anyone just attach working example , if it is possible ?

Code example:

Edit cranky-hugle-vf16ro

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda