Merge pull request #477 from isymchych/fix-safari-audio
do not hide small video until stream has been attached
This commit is contained in:
commit
8221a59261
File diff suppressed because it is too large
Load Diff
|
@ -249,7 +249,6 @@ RemoteVideo.prototype.addRemoteStreamElement = function (stream) {
|
|||
UIUtils.prependChild(this.container, streamElement);
|
||||
|
||||
let sel = $(`#${newElementId}`);
|
||||
sel.hide();
|
||||
|
||||
// If the container is currently visible we attach the stream.
|
||||
if (!isVideo || (this.container.offsetParent !== null && isVideo)) {
|
||||
|
@ -258,6 +257,11 @@ RemoteVideo.prototype.addRemoteStreamElement = function (stream) {
|
|||
stream.attach(sel);
|
||||
}
|
||||
|
||||
// hide element only after stream was (maybe) attached
|
||||
// because Temasys plugin requires video element
|
||||
// to be visible to attach the stream
|
||||
sel.hide();
|
||||
|
||||
// reselect
|
||||
if (RTCBrowserType.isTemasysPluginUsed()) {
|
||||
sel = $(`#${newElementId}`);
|
||||
|
|
Loading…
Reference in New Issue