W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

[Component Model] Use Case: Displaying an Element across frames

From: Charles Pritchard <chuck@jumis.com>
Date: Sat, 26 Nov 2011 20:02:51 -0800
Message-ID: <4ED1B66B.4090505@jumis.com>
To: public-webapps <public-webapps@w3.org>
I've come across a use case where it would have been nice to replicate 
the <audio> element across frames using postMessage to communicate 
information.
I know that youtube uses cross-frame messaging quite a bit.

Pseudo-code:

<body>
<audio controls>
<iframe>
<!-- inner src -->
<audio>
</iframe>
</body>


While there are many ways to handle the case, it would've been swell to 
be able to proxy information through frames via postMessage. Native 
<audio controls> implementations are immature, webkit's works poorly 
with width/height. It'd still be nice to use it as often as possible.

[css] appearance: none is one means of adjusting the presentation model. 
I think that media "controls" is another.
The <audio> element comes with sufficient apis to implement its feature 
set, and it has plenty of vendor-specific pseudo-selectors for the 
shadow dom.

It has a combination of buttons, progress meters, ranges (a volume 
slider), and a popup (also the volume slider). It's a good place to look 
when fully implementing appropriate ARIA hooks, and a good reference for 
how vendors have tried to handle a complex widget.


-Charles
Received on Sunday, 27 November 2011 04:03:15 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:49 GMT