Re: [whatwg] <source> media attribute behavior, static or dynamic ?

On Fri, 11 May 2012 11:24:20 +0100, Simon Pieters <simonp@opera.com> wrote:

>
> It is not appropriate for choosing between low resolution and high  
> resolution, because the environment can change (e.g. the user might  
> fullscreen the video after it has begun loading, and want high  
> resolution). Also, bandwidth is not available in MQ, but even if it was,  
> the user agent is in a better position to determine what is appropriate  
> than the author.
>
> It would be better to have a solution where the user agent is informed  
> about which streams are available and what properties they have, and let  
> the user and user agent switch streams at will. Maybe this should happen  
> on the network layer, keeping the same selected <source> URL.

There is a similar issue with "responsive images" selected for screen  
density and available bandwidth. Current proposal floating around uses  
<picture><source media="MQ"></picture> and suffers the same problem of MQ  
being inappropriate for bandwidth and relies on authors choosing the right  
criteria.

Perhaps there should be an attribute(s) on <source> that describes  
properties of the resource, and could be used for both video and images?

-- 
regards, Kornel Lesiński

Received on Friday, 11 May 2012 14:19:59 UTC