--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/36808372-cf6b-44e4-8cfc-62a9d6eab315%40googlegroups.com.
I've added onerror handler to the video element playing the MediaStream but I'm not getting an error.After the audio process crash I'm trying to play normal mp4 file in another video element and getting error.code 3 error.message AUDIO_RENDERER_ERROR: audio render error.videoEl.onerror = function(e) { console.log('error', e.target.error.code, e.target.error.message); };There are several issues:1. The audio process crash when when adding and removing audio and video transceivers randomly or fast enough.
2. A video element with a MediaStream srcObject doesn't fire the error event when the audio process crash.
3. There is no indication in Chrome UI for the audio crash.
On Saturday, September 7, 2019 at 4:16:51 AM UTC+2, Ben Browitt wrote:I've added onerror handler to the video element playing the MediaStream but I'm not getting an error.After the audio process crash I'm trying to play normal mp4 file in another video element and getting error.code 3 error.message AUDIO_RENDERER_ERROR: audio render error.videoEl.onerror = function(e) { console.log('error', e.target.error.code, e.target.error.message); };There are several issues:1. The audio process crash when when adding and removing audio and video transceivers randomly or fast enough.That looks like a bug. We can continue the discussion about it in the crbug you filed.2. A video element with a MediaStream srcObject doesn't fire the error event when the audio process crash.You should observe the "ended" event on the MediaStreamTrack.If the stream does not have an active video track, the element should fire the ended event too, but in Chrome it doesn't due to a bug (https://crbug.com/854991).
3. There is no indication in Chrome UI for the audio crash.There shouldn't be. The audio process starts automatically and immediately upon a crash.Such crashes in the past were crashes of the whole browser. Now they manifest as standard JS-level events.
Audio renderer error. Please restart your computer.
On Sunday, September 8, 2019 at 12:19:37 AM UTC+3, Guido Urdaneta wrote:
On Saturday, September 7, 2019 at 4:16:51 AM UTC+2, Ben Browitt wrote:I've added onerror handler to the video element playing the MediaStream but I'm not getting an error.After the audio process crash I'm trying to play normal mp4 file in another video element and getting error.code 3 error.message AUDIO_RENDERER_ERROR: audio render error.videoEl.onerror = function(e) { console.log('error', e.target.error.code, e.target.error.message); };There are several issues:1. The audio process crash when when adding and removing audio and video transceivers randomly or fast enough.That looks like a bug. We can continue the discussion about it in the crbug you filed.2. A video element with a MediaStream srcObject doesn't fire the error event when the audio process crash.You should observe the "ended" event on the MediaStreamTrack.If the stream does not have an active video track, the element should fire the ended event too, but in Chrome it doesn't due to a bug (https://crbug.com/854991).Observing "ended" event to detect audio process failure seems weird. Tracks might end for normal reasons. Isn't there an error when can listen to?
3. There is no indication in Chrome UI for the audio crash.There shouldn't be. The audio process starts automatically and immediately upon a crash.Such crashes in the past were crashes of the whole browser. Now they manifest as standard JS-level events.YouTube show a message:Audio renderer error. Please restart your computer.If there is unrecoverable error, I would expect the browser to let the users know and tell them how to solve it.In a WebRTC app, there isn't even a way to detect the error.
On Sunday, September 8, 2019 at 9:37:25 PM UTC+2, Ben Browitt wrote:
On Sunday, September 8, 2019 at 12:19:37 AM UTC+3, Guido Urdaneta wrote:
On Saturday, September 7, 2019 at 4:16:51 AM UTC+2, Ben Browitt wrote:I've added onerror handler to the video element playing the MediaStream but I'm not getting an error.After the audio process crash I'm trying to play normal mp4 file in another video element and getting error.code 3 error.message AUDIO_RENDERER_ERROR: audio render error.videoEl.onerror = function(e) { console.log('error', e.target.error.code, e.target.error.message); };There are several issues:1. The audio process crash when when adding and removing audio and video transceivers randomly or fast enough.That looks like a bug. We can continue the discussion about it in the crbug you filed.2. A video element with a MediaStream srcObject doesn't fire the error event when the audio process crash.You should observe the "ended" event on the MediaStreamTrack.If the stream does not have an active video track, the element should fire the ended event too, but in Chrome it doesn't due to a bug (https://crbug.com/854991).Observing "ended" event to detect audio process failure seems weird. Tracks might end for normal reasons. Isn't there an error when can listen to?The audio process is just an implementation detail of Chrome. It's not part of the Web platform.The ended event on a track is fired (according to the spec) whenever a track is stopped for any reason other than a call to the stop() event.That reason can be anything, a user disconnecting the hardware or an internal issue with the implementation (e.g., audio process crash, or OS APIs returned an error for some reason, or anything else).