W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2014

Re: replaceTrack proposal

From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 3 Sep 2014 13:13:06 -0700
Message-ID: <CABkgnnWTeN7J=XydXNm4y0h_=QBa=QML0JuyOR+xBYL3h=By5w@mail.gmail.com>
To: Bernard Aboba <Bernard.Aboba@microsoft.com>
Cc: Peter Thatcher <pthatcher@google.com>, Jan-Ivar Bruaroey <jib@mozilla.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 3 September 2014 13:03, Bernard Aboba <Bernard.Aboba@microsoft.com> wrote:
> With respect to the success/failure callbacks, I am wondering whether most of the potential errors wouldn't be handled via an Exception, rather than requiring a failure callback.  Also, I'd expect that setTrack would return quickly so that async behavior isn't an absolute requirement.   Or am I missing something that requires async behavior?

Some checks (that both are audio, that both have identical
peerIdentity constraints, that both are in the right state) are
trivial and wouldn't require a dispatch.

However, in our implementation, it's likely that confirming that a
track is a compatible replacement could require asynchronous
dispatches to a separate thread.  Blocking the main processing thread
for a synchronous dispatch would be very bad.  In general, I'd prefer
to have things that need to look at media be asynchronous to avoid any
risk that a synchronous dispatch is needed.
Received on Wednesday, 3 September 2014 20:13:33 UTC

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