[Bug 21336] MSE apps need a way to do resource selection

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21336

--- Comment #3 from Mark Watson <watsonm@netflix.com> ---
(In reply to comment #2)
> (In reply to comment #1)
> > I think this may be addressed with the window.matchMedia() method:
> > 
> > http://www.w3.org/TR/cssom-view/#dom-window-matchmedia
> 
> I'm confused about what the action is here. Are you saying that matchMedia()
> supports what you want? I don't think it makes sense to try to reuse
> <source> functionality since the application already requires JavaScript to
> run to create the MediaSource object and generate the blob URL. It could
> call isTypeSupported() to detect MediaSource support and matchMedia() to
> select the right assets to fetch. Am I missing something here?

No, I think mediaMatch() probably addresses the requirement. Seems that you
could implement the equivalent of the HTMLMediaElement resource selection
algorithm in Javascript using isTypeSupported and mediaMatch.

The 'probably' is only because my understanding of media queries and CSS is
limited. If it looks to people more familiar with this stuff that this meets
the requirement we can close this bug.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 20 March 2013 15:59:13 UTC