提交 35e503b7 authored 作者: Brian West's avatar Brian West

Merge pull request #443 in FS/freeswitch from…

Merge pull request #443 in FS/freeswitch from ~JMESQUITA/freeswitch:bugfix/FS-8060-webkit-does-like-to-set-src-of-video to master

* commit 'f327e103':
  FS-8060: [verto.js] conditionally set video tag src to null for FF and empty string for others.
......@@ -295,7 +295,11 @@ var iceTimer;
if (self.options.useVideo) {
self.options.useVideo.style.display = 'none';
self.options.useVideo[moz ? 'mozSrcObject' : 'src'] = null;
if (moz) {
self.options.useVideo['mozSrcObject'] = null;
} else {
self.options.useVideo['src'] = '';
}
}
if (self.localStream) {
......@@ -305,7 +309,11 @@ var iceTimer;
if (self.options.localVideo) {
self.options.localVideo.style.display = 'none';
self.options.localVideo[moz ? 'mozSrcObject' : 'src'] = null;
if (moz) {
self.options.localVideo['mozSrcObject'] = null;
} else {
self.options.localVideo['src'] = '';
}
}
if (self.options.localVideoStream) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论