Re: [rtcweb] Basic scenario 'impossible?' to achieve with the actual API

Stefan Håkansson LK <> Wed, 03 July 2013 07:38 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 12B4111E8176 for <>; Wed, 3 Jul 2013 00:38:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.849
X-Spam-Status: No, score=-2.849 tagged_above=-999 required=5 tests=[AWL=-1.750, BAYES_00=-2.599, J_CHICKENPOX_15=0.6, J_CHICKENPOX_18=0.6, MIME_8BIT_HEADER=0.3]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id AEc8X87vvAig for <>; Wed, 3 Jul 2013 00:38:52 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 76FC311E8174 for <>; Wed, 3 Jul 2013 00:38:52 -0700 (PDT)
X-AuditID: c1b4fb38-b7f456d000002e83-e8-51d3d50bf99b
Received: from (Unknown_Domain []) by (Symantec Mail Security) with SMTP id 8B.22.11907.B05D3D15; Wed, 3 Jul 2013 09:38:51 +0200 (CEST)
Received: from ([]) by ([]) with mapi id 14.02.0328.009; Wed, 3 Jul 2013 09:38:51 +0200
From: =?iso-8859-1?Q?Stefan_H=E5kansson_LK?= <>
To: =?iso-8859-1?Q?Jos=E9_Luis_Mill=E1n?= <>
Thread-Topic: [rtcweb] Basic scenario 'impossible?' to achieve with the actual API
Thread-Index: AQHOdz3PRfxdtB3UtEOLGBOa395CpA==
Date: Wed, 3 Jul 2013 07:38:50 +0000
Message-ID: <>
References: <>
Accept-Language: en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsUyM+JvrS731cuBBuePaFusO2BisfZfO7sD k8e5hvfsHkuW/GQKYIrisklJzcksSy3St0vgymhZd5yp4LtAxeqFj5gbGE/zdjFyckgImEi8 /LONCcIWk7hwbz1bFyMXh5DAUUaJP7P+skM4Cxkl3t5bxQ5SxSYQKLF13wKgKg4OEQFbictH /EDCzAKaEhOW7WIDsYUFgiX+TT0NVi4iECLR9ewQC4StJ7Hqz3wwm0VAReLjhblgNbwCvhIv Ts5nBrGFBAIk3qzqBoszAh30/dQaJoj54hK3nsyHOlRAYsme88wQtqjEy8f/WCFsJYnGJU9Y Ier1JG5MncIGYWtLLFv4mhlil6DEyZlPWCYwis5CMnYWkpZZSFpmIWlZwMiyipGjOLU4KTfd yGATIzAWDm75bbGD8fJfm0OM0hwsSuK8W/TOBAoJpCeWpGanphakFsUXleakFh9iZOLglGpg 3BW+7UaxxZ6PPxqyFx+I8ZgzJTw1WcaO72sST3CD6mFtsXPi962WCtVLbNh0akqNzuLNCxbx TXz00V+9ozV8+Xo5nhd+E+Y+vRr4ueL5zxl5j2YJ3z5iUqRp8GYD3//YhPciJwrrdj1faHU0 5xS753POD0ov7u48/WnWpcvXzn6bzdGV+3LLNVMlluKMREMt5qLiRACEiw6GUwIAAA==
Cc: "<>" <>
Subject: Re: [rtcweb] Basic scenario 'impossible?' to achieve with the actual API
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 03 Jul 2013 07:38:59 -0000

On 7/2/13 6:04 PM, José Luis Millán wrote:
> Hi,
> Please, let me know how this normal use case could be solved with the
> current API.
> Alice and Bob have accessed to a Web page offering a basic WebRTC
> application   that they use to speak and see each other. They are in the
> middle of a media session right now.
> Alice presses the "Video" button in her web application. A SDP offer
> with video description is sent to Bob:
> Bob doesn't want to see her, so his web application rejects the media by
> using any valid method for that:
> -- a=inactive
> -- m=video 0

My personal view is that even if we use SDP for carrying the association 
between RTP SSRCs and the MediaStream and MediaStreamTrack structures as 
well as negotiating codecs, we should not use it to negotiate what 
streams and tracks to use. It should only be used to set up the streams 
and tracks over the networks that is decided by the application.

One way in this specific case could be that Bob's application (since Bob 
does not want to see Alice) simply does not show the video. Bob's 
application could in addition signal this to Alice's application (in 
some app proprietary way) and Alice's app could remove the video stream 
(or track) from PeerConnection to save bandwidth and processing.


> Alice web application received a SDP answer which was consumed
> successfully by the RTCPeerConnection. Alice thinks she is sharing her
> video, but she is not.
> The application "Video" button is disabled since the video is already
> being shared (theoretically)
> The application "self-Video" HTML5 video element displays Alice's face.
> She thinks that Bob is seeing her face too, but he did indeed rejected so.
> I hope this common scenario can be achieved somehow with the current
> API. I can't find how to do it though.
> Thanks in advance
> --
> José Luis Millán