mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-8060: [verto.js] conditionally set video tag src to null for FF and empty string for others.
This commit is contained in:
@@ -294,7 +294,11 @@ var iceTimer;
|
|||||||
|
|
||||||
if (self.options.useVideo) {
|
if (self.options.useVideo) {
|
||||||
self.options.useVideo.style.display = 'none';
|
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) {
|
if (self.localStream) {
|
||||||
@@ -304,7 +308,11 @@ var iceTimer;
|
|||||||
|
|
||||||
if (self.options.localVideo) {
|
if (self.options.localVideo) {
|
||||||
self.options.localVideo.style.display = 'none';
|
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) {
|
if (self.options.localVideoStream) {
|
||||||
|
Reference in New Issue
Block a user