W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2013

How to know if a given track or media stream is being transmitted

From: José Luis Millán <jmillan@aliax.net>
Date: Fri, 14 Jun 2013 20:09:03 +0200
Message-ID: <CABw3bnMAmfZu2kngTGrwNjnUGY72Yj2bwRVhJH0yMqshUpHrSA@mail.gmail.com>
To: public-webrtc@w3.org

I wonder if the following scenarios are considered in the WebRTC API.

Alice and Bob have a peerConnection each. Both have a mediaStream loaded in
their peerConnection. The mediaStream in Alice's peerConnection has one
audio track and zero video tracks, Bob's has one audio and one video track.

Alice sends a SDP offer to Bob. She wants to establish an audio media
session. Bob receives the offer and answers Alice. Both SDPs have an audio
only media description.

After a while Bob decides to share his video with Alice. He looks at his
peerConnection and he notices he actually has a video track, but he doesn't
know whether he is already sending that video to Alice or not.

How does Bob know if he is sending his video to Alice by looking at his

Another scenario is the one where Carol offers Alice a SDP offer containing
audio and video media description and Alice only accepts the audio, she is
not willing to receive any video from Carol.

How does Carol know she is not sharing her video?

Same for entire mediaStreams in a peerConnection.

I can't figure out how to achieve it. Have this been considered?


José Luis Millán
Received on Friday, 14 June 2013 18:09:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:44 UTC