Temasys / AdapterJS

AdapterJS Javascript Polyfill and Tools for WebRTC - Skylink WebRTC
http://skylink.io/web
Other
432 stars 100 forks source link

Updating media streams doesn't work in Safari #205

Closed Rugvip closed 3 years ago

Rugvip commented 8 years ago

This simple test case seems broken:

navigator.getUserMedia({video: true}, function (stream) {
    AdapterJS.attachMediaStream(videoElement, null)
    AdapterJS.attachMediaStream(videoElement, stream)
}, function (error) {
    console.error(error)
})

While directly assigning the stream without first assigning null works just fine.

It looks like the streamId of the object tag isn't updated.

Rugvip commented 8 years ago

A workaround for this seems to be to never assign a null stream first. If that's avoided it's fine to assign a null stream and then back to a stream later.

johache commented 8 years ago

Hi, I have reproduced the issue and started fixing it. I'll keep you posted when it's ready to be shipped.