Temasys / AdapterJS

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

Replacing stream doesn't work. #276

Closed zdila closed 7 years ago

zdila commented 7 years ago

In Safari 10 if we set new <param name="streamId" value="..." /> in the existing object then there is no video shown until we make our app fullscreen (using fullscreen api) or return from fullscreen. It seems to be a bug of Themasys plugin. We are using latest free version.

zdila commented 7 years ago

Workaround:

  1. remove object element from the DOM
  2. set its <param name="streamId" value="..." />
  3. put object element back to the DOM (to the same place)
johache commented 7 years ago

The browser doesn't inform the plugin when a child element is modified. Basically, we only ready the when the plugin object is instantiated, which, as you figured out, is when you inject it into the DOM.

This is not a bug, it's just the way it works.