Merge pull request #477 from isymchych/fix-safari-audio

do not hide small video until stream has been attached
This commit is contained in:
Paweł Domas 2016-01-28 11:10:02 -06:00
commit 8221a59261
2 changed files with 1972 additions and 2242 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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}`);