Re: new device APIs?

On Thu, 03 Jul 2014 22:54:06 +0400, Marcos <marcos@marcosc.com> wrote:

> On July 3, 2014 at 8:24:09 AM, Ilya Bogdanovich  
> (bogdanovichiy@yandex-team.ru) wrote:
>> Hi Dom, all,
>>
>> What do you think about API for headphones plug in/out notification?
>> That may be very helpful for online music/video players - the API could  
>> help with automatic
>> sound muting when phones plugged out, and turning it on when phones  
>> plugged in back, for
>> example.
>
> I agree. This would be a great addition to the platform. We should add  
> this to the DAP charter, btw!

Yep. Especially if others are also interested in implementing… any takers  
at this early stage?

>> The API seems to be rather simple, e.g. addEventListener(“headphones”,  
>> handler) and
>> should be easy to implement. We at Yandex are interested in  
>> implementing it and making
>> a web standard.
>
> We should hold on discussing the design of the API until we explore the  
> use cases a bit more. For instance, we need to consider that the sound  
> is being re-routed from one output channel to another (headphone ->  
> internal-speaker -> USB speaker -> HDMI, etc.)... that may or may not  
> have any influence on the API design, just things we need to consider.

Yeah, looking carefully at the use cases often shows that even if things  
are simple, they might not work exactly as we thought.

cheers

Chaals

-- 
Charles McCathie Nevile - web standards - CTO Office, Yandex
chaals@yandex-team.ru         Find more at http://yandex.com

Received on Thursday, 3 July 2014 21:12:11 UTC