Hi Alan, (I'm cross posting to dev-media to get some insight on the media cache - media folks, this email is with respect to Flash/HDS, and I don't think it uses the media cache - please confirm.
And Patrick, I'm bouncing it back to you for the resource-sharing question about parallel chunk requests :) I'm not 100% on the details, so I'm going to spend some time on that, but in the meantime, you might be able to give Alan a quicker response than me. And Nick and Michal, please take a look over the disk cache question). On May 17, 2012, at 6:31 AM, Patrick McManus wrote: > Maybe steve can give a little insight here. He's been working on a DASH > implementation. As Patrick wrote, I'm working on DASH/WebM for Firefox, so I'll comment as best I can from that context, but there may be differences with how Flash works. Also, for some of these things I'm learning as well, so forgive me for forwarding you to other folks for specific details. On May 13, 2012, at 5:20 PM, AlanO wrote: > I'm working with the HDS streaming technologies, within the Adobe > Flash world, and I'm trying to compile a set if 'FAQs' about each main > browser available to consumers and how it will react to the 'chunks' > being delivered via the HTTP stack. > > My current understanding on Firefox is that, although the Adobe Flash > plugin handles presentation of the video, the chunks are requested via > the host browser's network stack. Resulting in an HTTP request for a > chunk (aka 'fragment'). > > A couple of things have struck me about this: > > 1/ What is the default setting in Firefox for the Cache? Is it RAM > then Disk. Is this flow described anywhere? One of our cache experts, Nick, has told me that the resources are cached in both RAM and disk by default. Nick, Michal, is there a flow described somewhere for the cache that Alan could look at? Do you know how plugins like Flash use the cache? Is there a difference? > > 2/ How is garbage collection instigated - the latest Firefox has an > option suggesting that, by default, there is an automatic garbage > collection which must use some rules... perhaps about disk space? For > example: in Google Chrome, the default cache can take up huge amounts > of disk space growing without some sort of size limit it seems, plus > you can only change the cache settings on the CLI of Chrome (no > 'consumer' level configuration in the 'preferences' dialogs). I'll let Nick and Michal comment on garbage collection for regular cache objects. We also have a media cache, which the guys on dev-media have a better understanding since they wrote it, but I don't think it's used for Flash, only for built-in decoders. > > 3/ What are the methods employed when multiple chunks are requested - > as with loading a web page, there is some 'pipeline' going on in the > network stack. Perhaps limiting the total number of working threads > for 'same domain' requests - this could impact on HDS chunks. Consider > where more than one HDS stream is present in a users browser (e.g. > multiple tabs/windows with an HDS stream) - if chunks are served from > the same FQDN, would there be a 'fight' due to slots within the worker > threads in the network stack? Chunks as a concept is something on my todo-list-to-think-about for DASH, albeit to examine the effect of different chunk sizes on TCP window size and thus bandwidth usage, which is, of course, a different issue. So, to make sure I understand your question, you're asking if there could be a fight for resources if there were two or more media presentations grabbing files/chunks from the same FQDN. Assuming that's right, I'm going to look into it and get back to you, because I'm not 100% sure. I have a notion that it depends on what protocol you're using (HTTP, maybe with pipelining, or SPDY) and the number of parallel TCP connections available. As far as the number of threads or other resources we have in Firefox, I'm not sure of those details. In the meantime, Patrick may actually have a better idea about the inner workings - sorry to bounce it back, Patrick :) > > Although I mention HDS here, this would likely go for any other > chunked streaming methods (MPEG-DASH, HLS) which may have a client > implemented inside a browser host. For sure, so it's useful discussion to have all round. > > I hope that someone in your team could assist me with these queries. > > Alan > _______________________________________________ > dev-tech-network mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-network _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
