提交 07775682 authored 作者: Anthony Minessale's avatar Anthony Minessale

don't recv video on screen share

上级 03219436
......@@ -523,6 +523,14 @@ var iceTimer;
function onSuccess(stream) {
self.localStream = stream;
if (screen) {
if (moz) {
self.constraints.OfferToReceiveVideo = false;
} else {
self.constraints.mandatory.OfferToReceiveVideo = false;
}
}
self.peer = RTCPeerConnection({
type: self.type,
......@@ -533,7 +541,7 @@ var iceTimer;
onICEComplete: function() {
return onICEComplete(self);
},
onRemoteStream: screen ? function(stream) {console.error("SKIP");} : function(stream) {
onRemoteStream: screen ? function(stream) {} : function(stream) {
return onRemoteStream(self, stream);
},
onOfferSDP: function(sdp) {
......
This diff was suppressed by a .gitattributes entry.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论