Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!