Hi Tom,
I have updated the pranswer.html demo. You can take a look at the demo
code.
webrtc-demos.appspot.com/html/pranswer.html
/Vikas
On Apr 8, 11:20 am, Vikas Marwaha <
vikasmarw...@webrtc.org> wrote:
> Thanks Tom for the feedback, i think Justin's suggestion below for setting
> a =recvonly or a=inactive should work fine to stop sending RTP packets. You
> need to renegotiate with an offer-answer for the modified sdp. I will see
> if i can recreate the errors you see.
>
> /Vikas
>
>
>
>
>
>
>
> On Mon, Apr 8, 2013 at 10:57 AM, Tom <
tom.m...@gmail.com> wrote:
> > Thats good to know Vikas,
>
> > Do you have any thoughts on the issue at this moment? I'm not familiar
> > with the old API's in these demos but I need to achieve pausing the media
> > stream. All the advice i've read points to changing the SDP to a=inactive -
> > however doing this with setLocalDescription always results in state errors
> > such as:
>
> > "SetLocalDescription failed: Called with type in wrong state, type: answer
> > state: STATE_INPROGRESS"
> > "SetLocalDescription failed: Failed to update session state."
>
> > I'm at a loss as to what I need to do for the connection to allow me to
> > renegotiate / change the descriptions.
>
> > Cheers,
>
> > On Monday, 8 April 2013 18:18:03 UTC+1, Vikas wrote:
>
> >> Hi Tom,
>
> >> We will be updating the pranswer.html demo to work on Chrome 26. There
> >> is a bug in the tracker. See issuehttps://
code.google.com/p/**
> >> webrtc/issues/detail?id=1432<
https://code.google.com/p/webrtc/issues/detail?id=1432>
>
> >> /Vikas
>
> >> On Apr 8, 6:35 am, Tom <
tom.m...@gmail.com> wrote:
> >> > Are there any uptodate demos of this functionality around? This demo
> >> > doesn't work at all in Chrome 26 and I'm not sure if it really shows
> >> > 'pausing' of a stream in the same way.
>
> >> > On Friday, 29 June 2012 20:06:29 UTC+1, Justin Uberti wrote:
>
> >> > > To stop sending of RTP packets, use a=inactive or a=recvonly.
> >> > > 1. createOffer
> >> > > 2. Set a=recvonly in the SDP
> >> > > 3. pc.setLocalDescription(OFFER, SDP)
> >> > > 4. pc.setRemoteDescription(**ANSWER, pc.remoteDescription)
>
> >> > > Seehttps://webrtc-demos.**
appspot.com/html/pranswer.**htmlfor<
http://webrtc-demos.appspot.com/html/pranswer.htmlfor>a similar
> >> > > example.
>
> >> > > On Fri, Jun 29, 2012 at 4:08 AM, Alexey Ovchinnikov <
> >>
ovch...@gmail.com<javascript:**>
> >> > > > wrote:
>
> >> > >> Thank you very much. But I don't understand. This feature still not
> >> work?
> >> > >> It's my sample:
> >> > >>
http://82.146.58.238/**doacall.html<
http://82.146.58.238/doacall.html>.
>
> >> > >> MuteVideo button must mute Video and Audio.
> >> > >> In code it's
> >> > >> camera.videoTracks[0].enabled = false;
> >> > >> camera.audioTracks[0].enabled = false;
>
> >> > >> stream1.videoTracks[0].**enabled = false;
> >> > >> stream1.audioTracks[0].**enabled = false;
>
> >> > >> stream2.videoTracks[0].**enabled = false;
> >> > >> stream2.audioTracks[0].**enabled = false;