Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

113
Vistas
Why video stream doesn't work on iOS 15.1?

Looks like in iOS 15 or 15.1 a bug appeared that somehow broke the video streaming feature.

I've found a couple of links related to that issue but still couldn't figure it out. I use VueJS and I tried different solutions.

So, it doesn't work on any browser in iOS 15.1.

What I exactly do I have a video tag, in which I put srcObject with a video stream. The following code works everywhere except iOS 15.1:

<template>
    <video
      autoplay
      playsinline
      ref="video"
      class="video"
      :class="{ 'video-mobile': $mq === 'sm' }"
    />
</template>

<script>
    // ...
    async mounted () {
      if (!this.deviceSupported) {
        this.handleError('NoSupportedDevice')
        return
      }

      try {
        let stream = await navigator.mediaDevices.getUserMedia(this.constraints)
        this.$refs.video.srcObject = stream

      } catch (error) {
        console.log(error, 'camera_error')
        this.handleError(error.name)
      }
    },

</script>

BUT What happens is that if I hide and show the browser window, the video appears. And even if I don't do that, I'm still able to capture the video screenshot, so technically the stream works. The only thing that doesn't work is that the image of the video tag does not appear.

I tried different solutions

  1. Using v-show, v-if and initialising video in $nextTick
  2. Using timeout (e.g. after getting video permissions I waited for a second and then initialized video with srcObject)

Without any success =\

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You need to add 'muted' attribute in pair with 'autoplay' to make the video play by default. Also, try 'playsInline' if 'playsinline' still doesn't resolve it.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda