On Tue, Jul 24, 2012 at 10:34 AM, Eric Rescorla <[email protected]> wrote:

> On Mon, Jul 23, 2012 at 3:25 PM, Robert O'Callahan <[email protected]>
> wrote:
> > Can we make SDP generation asynchronous? I.e., the JS API that triggers
> SDP
> > generation returns before SDP is actually generated? Then we could delay
> > SDP generation until some tracks have appeared in the input stream.
>
> It already is, but how do we know that all the tracks have appeared?
>

Ah! Of course in general new tracks can appear at any time in the future,
but normally the first tracks will be added "all at once" and that should
be good enough here --- except the current API has no way to tell you when
that first batch is done. But that's easy to fix :-).

So, how about we add MediaStreamListener::NotifyTrackSetAdded() which fires
when we've called NotifyQueuedTrackChanges with TRACK_CREATE one or more
times and we don't know of any other new tracks at this time?

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to