New issue
Advanced search Search tips

Issue 607820 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



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 description

UserAgent: 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
 
Components: Blink>WebRTC>Audio
Labels: Te-NeedsFurtherTriage
Labels: Needs-Feedback
[triage] could you provide some sample code that demonstrates the issue? This to me just sounds like a signalling issue.
 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);
        });
    }
Project Member

Comment 4 by sheriffbot@chromium.org, May 4 2016

Labels: -Needs-Feedback Needs-Review
Owner: jansson@chromium.org
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
Status: Assigned (was: Unconfirmed)
[triage]: I guess it's to jansson@ to try and repro?
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?
Labels: Needs-Feedback
 mantu.nigam@ could you please answer my question in #6? Thanks!
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
Hi we have verified the issue not exists anymore.
Thanks for your support
Glad to hear ;) Did you do anything in your code to fix it?
No as such but just it start working for us.Thanks alot :)
Status: WontFix (was: Assigned)

Sign in to add a comment