Re: [rtcweb] Forking & Early Media - Was Re: Minimal SDP negotiation mechanism

Hadriel Kaplan <HKaplan@acmepacket.com> Thu, 22 September 2011 22:52 UTC

Return-Path: <HKaplan@acmepacket.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C36F211E80C7 for <rtcweb@ietfa.amsl.com>; Thu, 22 Sep 2011 15:52:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.528
X-Spam-Level:
X-Spam-Status: No, score=-2.528 tagged_above=-999 required=5 tests=[AWL=0.071, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rym2dD9T7e0a for <rtcweb@ietfa.amsl.com>; Thu, 22 Sep 2011 15:52:54 -0700 (PDT)
Received: from etmail.acmepacket.com (etmail.acmepacket.com [216.41.24.6]) by ietfa.amsl.com (Postfix) with ESMTP id 253A511E8098 for <rtcweb@ietf.org>; Thu, 22 Sep 2011 15:52:53 -0700 (PDT)
Received: from MAIL2.acmepacket.com (10.0.0.22) by etmail.acmepacket.com (216.41.24.6) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 22 Sep 2011 18:55:25 -0400
Received: from MAIL1.acmepacket.com ([169.254.1.150]) by Mail2.acmepacket.com ([169.254.2.157]) with mapi id 14.01.0270.001; Thu, 22 Sep 2011 18:55:24 -0400
From: Hadriel Kaplan <HKaplan@acmepacket.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>
Thread-Topic: [rtcweb] Forking & Early Media - Was Re: Minimal SDP negotiation mechanism
Thread-Index: AQHMeXq2MKhYCusi80eyAB0xuXvE5w==
Date: Thu, 22 Sep 2011 22:55:24 +0000
Message-ID: <8A8889E9-2C33-40DE-90E5-E8F468072F62@acmepacket.com>
References: <4E777500.5030201@alvestrand.no> <69262135-CF5D-4E79-85CD-82DFDC4250C0@acmepacket.com> <7F2072F1E0DE894DA4B517B93C6A05852233F6F222@ESESSCMS0356.eemea.ericsson.se> <4E788458.1090108@alvestrand.no> <7F2072F1E0DE894DA4B517B93C6A05852233F6F2A0@ESESSCMS0356.eemea.ericsson.se> <4E788E5C.9090306@alvestrand.no> <11209B22-4D96-4367-BC31-A4D586B55A83@edvina.net> <27019ED4-BE01-474C-886E-D237DBD6CD2C@cisco.com> <6916F9BA-3296-46DD-9F06-01E3928A8184@acmepacket.com> <7F2072F1E0DE894DA4B517B93C6A05852233D45FB9@ESESSCMS0356.eemea.ericsson.se>
In-Reply-To: <7F2072F1E0DE894DA4B517B93C6A05852233D45FB9@ESESSCMS0356.eemea.ericsson.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [216.41.24.34]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <5A821EE3D60FB34C9BC21F241327DD35@acmepacket.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: AAAAAQAAAWE=
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Forking & Early Media - Was Re: Minimal SDP negotiation mechanism
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Sep 2011 22:52:54 -0000

On Sep 22, 2011, at 3:41 PM, Christer Holmberg wrote:

>> The really hard part is knowing which stream to use/render/send-to, imho.  And putting that decision in the gateway isn't good - the best decider of that is probably the JS in the browser.
> 
> I am not sure whether the JS app would be able to make better decisions than the gateway - and I've never seen a SIP client which would allow the user to choose which early media to listen to. 


But these aren't phone-call SIP clients - they're browsers.  They can show the multiple video streams in separate windows, for example.  They can show multiple chat sessions per fork too.  Or they may just pick the most recent one and only display it.  That's the nice thing about JS: the JS developer decides what the user experience model is like, based on what type of application/service they're providing; as opposed to the IETF/W3C choosing for them.


> In my opinion the best thing would be if we could come up with some common BCP, e.g. saying that media associated with the early dialog on which the latest SDP answer was received is considered "active", and will be presented to the user etc. 

That's not the whole problem though.  Suppose it only forked to two agents: Robert and Bob.  Robert sent a 18x with SDP first and then Bob.  So the rtcweb browser starts off using Robert's, does ICE with Robert, etc., and then get's Bob's and starts using Bob's because it's fresher.  Now Robert accepts the connection and/or Bob rejects it; how does the rtcweb browser revert to using Robert?  

If the answer is "well the rtcweb browser had to keep state information about Robert's SDP/media info as well as about Bob's", then we're back to the tricky part about PeerConnection having multiple media peers when it only expected one; if we can solve that, then we've solved the basic issue at hand. (I think... or I need more coffee)

-hadriel