ipywebrtc icon indicating copy to clipboard operation
ipywebrtc copied to clipboard

Why does the audio play continuously without stopping, even for the documentation?

Open jiapei100 opened this issue 3 years ago • 3 comments

Hi:

I actually just opened ipywebrtc official website: https://ipywebrtc.readthedocs.io/en/latest/VideoStream.html , and it seems the video (with audio) continue to play without stopping. Even if I can stop the video stream, the audio still keeps playing...

Is there a method to really control both video and audio streams from within jupyter notebook??

Thanks...

jiapei100 avatar Sep 14 '22 17:09 jiapei100

The fact that you can still hear the audio playing is a bug in Chrome itself, which has been reported but marked as "won't fix". If you use Firefox, you should hopefully not see this behavior (if nothing has changed since 2018 :D I admit I did not try).

Note that pressing pause on the video-stream pauses the video-stream, not the video source.

martinRenou avatar Sep 15 '22 06:09 martinRenou

Was it chrome?

I actually get an error with brave: Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD

maartenbreddels avatar Sep 15 '22 07:09 maartenbreddels

I actually get an error with brave: Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD

Interesting! I was not aware of this. This might have broken some things in ipywebrtc indeed.

It's probably unrelated to the original issue though.

martinRenou avatar Sep 15 '22 09:09 martinRenou