Hello,I try the following: Chrome "A" (camera) calls Chrome "B" (camera).All works fine: Both videos are rendered on each sideBut I want to stop the call on "A" side, so I use MediaStream.stop() on "A" side
On "A" side, I detect (using listeners) that:- "A" Audio track has ended- "A" Video track has ended- "A" MediaStream has endedBut on "B" side, I see that, there is no more bits received for each track, but it seems that the events Track.onended and MediaStream.onended are not fired ?
Is it the right method to detect that video from the remote peer has stopped (without having to use the signaling layer) ?Or, should I remove the stream from the peerConnection too so that on "B" side, other events are fired (onaddstream) ?
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In my app the onaddstream, onremovestream, onaddtrack and onremovetrack callbacks are not reliable.I'm building audio/video conference where each user create a single peer connection and connects to MCU.The server adds and removes streams and tracks when participants start and stop their camera and microphone.Let's say a user has audio stream and he starts and stops his camera several times.
Other participants should see the onaddtrack and onremovetrack callbacks being called.
In my tests, it works several times but than the callbacks just stop firing.
2014-09-15 1:35 GMT+02:00 pablo platt <pablo...@gmail.com>:In my app the onaddstream, onremovestream, onaddtrack and onremovetrack callbacks are not reliable.I'm building audio/video conference where each user create a single peer connection and connects to MCU.The server adds and removes streams and tracks when participants start and stop their camera and microphone.Let's say a user has audio stream and he starts and stops his camera several times.How are you stopping the camera? Removing the stream and renegotiating?
Other participants should see the onaddtrack and onremovetrack callbacks being called.You are adding/removing the respective a=ssrc:...msid lines for the tracks?Are onaddstream / onremovestream called the way you would expect?
In my tests, it works several times but than the callbacks just stop firing.I suppose using multiple tracks in the same stream still has some issues (see e.g. issue 3587).
Do you really need multiple tracks or would multiple streams be sufficient? That works pretty reliable in my experience.
2014-09-15 10:51 GMT+02:00 Philipp Hancke <philipp...@googlemail.com>:
> You are adding/removing the respective a=ssrc:...msid lines for the tracks?
That is not the way to go in Plan-Unified in which each track MUST be
defined by its own "m" line.
--
Iñaki Baz Castillo
<i...@aliax.net>
I'm not really in line with proposals given in that thread.As a Web developer, today, I would like to rely only on the APIs defined by the standardization group.If I have to deal with the SDP, building a webRTC application will be too complicated.So, my understanding is that the event stream.onended is not fired (local side) when the remote peer calls stream.stop().But I don't know if it's a bug or not.
Because, I try to find a solution to detect that the remote stream has ended without having to use my own signaling layer to send a "endcall" message
Changing the direction of the media section to "recvonly" will not close the MediaStreamTrack.