Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). #62

Open
crookedbard opened this issue Oct 25, 2018 · 4 comments

Comments

@crookedbard
Copy link

Sometimes I get this error after the ready function has been called:
// As soon as the phone is ready we can make calls

phone.ready(function() {
      console.log('ready');
}

It happens when I start and stop camera repeatedly.
Because of this I can't see my local video cam:

                // Local Camera Display
                phone.camera.ready(video => {
                localVideo.appendChild(video);
            });
@crookedbard
Copy link
Author

I stop the camera like this:
image
And after that I try to call again phone.startcamera();
And then I get that error.

@stephenlb
Copy link
Owner

You need to PHONE.hangup() after stopping the camera. Hope this works!

@crookedbard
Copy link
Author

this didn't help

@stephenlb
Copy link
Owner

Oh! Yes, the demo apps uses audio DOM APIs. This isn't part of the WebRTC SDK. You can exclude this by removing all .play() calls. This will fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants