Issue metadata
Sign in to add a comment
|
WebRTC audio transmission is one way only (originator can hear sound but not recipient )
Reported by
mantu.ni...@globallogic.com,
Apr 29 2016
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 Steps to reproduce the problem: 1.Suppose A Place a call using RTCPeerConnection to B 2.B accept offer and send answer to A 3.A set the answer to remote description What is the expected behavior? Audio/Video communication should work on both end What went wrong? only A will be able to hear voice of B however video streaming working well on both ends Did this work before? N/A Chrome version: 49.0.2623.112 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 21.0 r0
,
May 3 2016
[triage] could you provide some sample code that demonstrates the issue? This to me just sounds like a signalling issue.
,
May 3 2016
this.getUserMedia = function() {
deferedMedia = $.Deferred();
window.navigator.mediaDevices.getUserMedia({
audio: true,
video: true
})
.then(self.onGetLocalStream)
.catch(function(e) {
deferedMedia.reject();
});
return deferedMedia.promise();
}
this.createPeerConnection = function() {
connection = new RTCPeerConnection(servers, pcConstraint);
connection.onaddstream = self.onGetRemoteStream;
sendDataChannel = connection.createDataChannel('sendDataChannel', dataConstraint);
sendDataChannel.onopen = onSendChannelStateChange;
sendDataChannel.onclose = onSendChannelStateChange;
localMediaStream && connection.addStream(localMediaStream);
connection.ondatachannel = receiveChannelCallback;
connection.onicecandidate = iceCallback;
}
//On get local media stream audio/video
this.onGetLocalStream = function(stream) {
var localVideo = document.querySelector('video#localVideo');
localVideo.srcObject = stream;
localMediaStream = stream;
console.log(localMediaStream);
deferedMedia.resolve();
}
this.onGetRemoteStream = function(e) {
var remoteVideo = document.querySelector('video#remoteVideo');
remoteVideo.srcObject = e.stream;
remoteMediaStream = e.stream;
}
this.onReceiveMessageCallback = function(event) {
console.log(event.data);
}
this.createCall = function() {
var mediaReq = self.getUserMedia();
var offerOptions = {
offerToReceiveAudio: 1,
offerToReceiveVideo: 1
};
mediaReq.then(function() {
self.createPeerConnection();
connection.createOffer(gotDescriptionOffer, onCreateSessionDescriptionError,offerOptions);
})
}
this.onGetAnswer = function(sdpAnswer) {
var mediaReq = self.getUserMedia();
mediaReq.then(function() {
var description = new RTCSessionDescription(sdpAnswer);
connection.setRemoteDescription(description);
});
}
this.onGetOffer = function(sdpOffer) {
var mediaReq = self.getUserMedia();
mediaReq.then(function() {
self.createPeerConnection();
var description = new RTCSessionDescription(sdpOffer);
connection.setRemoteDescription(description);
connection.createAnswer(gotDescriptionAnswer, onCreateSessionDescriptionError);
});
}
,
May 4 2016
Thank you for providing more feedback. Adding requester "jansson@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 10 2016
[triage]: I guess it's to jansson@ to try and repro?
,
Jun 16 2016
Are you using adapter.js? srcObject landed in M52. Also, does https://webrtc.github.io/samples/src/content/peerconnection/pc1/ work for you? Also could you retry this in latest stable which is now M51?
,
Jul 13 2016
mantu.nigam@ could you please answer my question in #6? Thanks!
,
Jul 13 2016
Hi, Thanks for your valuable reply.Yes we are using latest adapter.js and https://webrtc.github.io/samples/src/content/peerconnection/pc1/ works for us
,
Jul 15 2016
Hi we have verified the issue not exists anymore. Thanks for your support
,
Jul 15 2016
Glad to hear ;) Did you do anything in your code to fix it?
,
Jul 15 2016
No as such but just it start working for us.Thanks alot :)
,
Jul 15 2016
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by msrchandra@chromium.org
, May 3 2016Labels: Te-NeedsFurtherTriage