On Thu, Mar 1, 2012 at 7:01 PM, Patrick McManus <[email protected]>wrote:

> On Thu, 2012-03-01 at 09:56 -0800, Jason Duell wrote:
> > One big question is: at what level should we be doing this?  The obvious
> > two choices are to 1) have the video layer control download speed by
> > calling suspend/resume on the network channel as needed.  That's a
> > pretty blunt hammer;  or 2) add some sort of API to necko that lets the
> > consumer specify what sort of bitrate they need to get out of the
> > channel, and have necko deal with controlling the rate.
>
> presumably #2.. maybe load group based instead of or in addition to
> channel. non video use case would be things in the download window when
> they were competing with interactive needs.
>

Using the loadgroup might be tricky since video downloads have to belong to
the page's loadgroup when we're delaying the page onload event for them,
and juggling the download channel between the page's main loadgroup and its
background loadgroup is already a pain.

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-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to