提交 ed36e9cb authored 作者: Chad Phillips's avatar Chad Phillips 提交者: Mike Jerris

FS-9395: downgrade some FSRTC console.error messages

Some of the console.error messages generated in FSRTC aren't really
error-worthy, downgrading appropriately.
上级 c5bd2997
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
} else { } else {
if (self.localStream.active){ if (self.localStream.active){
var tracks = self.localStream.getTracks(); var tracks = self.localStream.getTracks();
console.error(tracks); console.log(tracks);
tracks.forEach(function(track, index){ tracks.forEach(function(track, index){
console.log(track); console.log(track);
track.stop(); track.stop();
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
} else { } else {
if (self.options.localVideoStream.active){ if (self.options.localVideoStream.active){
var tracks = self.options.localVideoStream.getTracks(); var tracks = self.options.localVideoStream.getTracks();
console.error(tracks); console.log(tracks);
tracks.forEach(function(track, index){ tracks.forEach(function(track, index){
console.log(track); console.log(track);
track.stop(); track.stop();
...@@ -1029,7 +1029,7 @@ ...@@ -1029,7 +1029,7 @@
onsuccess: function(e) { onsuccess: function(e) {
e.getTracks().forEach(function(track) {track.stop();}); e.getTracks().forEach(function(track) {track.stop();});
console.info(w + "x" + h + " supported."); $.FSRTC.validRes.push([w, h]); checkRes(cam, func);}, console.info(w + "x" + h + " supported."); $.FSRTC.validRes.push([w, h]); checkRes(cam, func);},
onerror: function(e) {console.error( w + "x" + h + " not supported."); checkRes(cam, func);} onerror: function(e) {console.warn( w + "x" + h + " not supported."); checkRes(cam, func);}
}); });
} }
......
This diff was suppressed by a .gitattributes entry.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论