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

190
Vistas
Javascript OpenTok doesn't release media

I created a video web application that works properly but when I try to disconnect the session, the video and the audio disappeared but the camera remains blocked on both sides of my application and I'm not able to use the camera with another application until I reload the page.

I receive this message:

OpenTok:NativeVideoElementWrapper:1:warn Video element paused, auto-resuming. If you intended to do this, use publishVideo(false) or subscribeToVideo(false) instead.

This is my disconnect method on both sides of my application:

        if(this.publisher){
            this.session.unpublish(this.publisher)
        }
        if(this.subscriber){
            this.session.unsubscribe(this.subscriber)
        }

        this.session.disconnect()

        this.session.off('streamCreated')

EDIT:

I solved the issue: I have to call this.publisher.destroy() after unpublishing it

about 4 years ago · Juan Pablo Isaza
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