W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2014

Re: Proposal: Fire a toneDiscarded event while discarding the invalid DTMF values.

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Wed, 11 Jun 2014 13:34:38 +0200
Message-ID: <53983ECE.9050504@ericsson.com>
To: Harald Alvestrand <harald@alvestrand.no>, <public-webrtc@w3.org>
On 2014-06-11 11:58, Harald Alvestrand wrote:
> On 06/11/2014 09:44 AM, Kiran Kumar Guduru wrote:
>> Samsung Enterprise Portal mySingle
>>
>> Hi,
>>
>> It has been discussed to discard the invalid DTMF values while
>> playing, instead of raising an error.
>>
>> Instead of just discarding the invalid values.
>>
>> I would like to propose, to fire a 'toneDiscarded' event when any
>> invalid DTMF value is discarded.
>>
>> This may help the app to track the playout properly.
>>
>> What do you say?
>>
>
> Alternatively, we can fire the tonechange event even if the character is
> unrecognized (move the "fire an event" step to before the "discard" step")
>
> I don't see a reason to complexify the interface more with another event
> type.

This error case is pretty good match for the predefined 
InvalidCharacterError DOMError. So we should just throw when the method 
is called.

"InvalidCharacterError": The string contains invalid characters.

No new API surface.

/Adam
Received on Wednesday, 11 June 2014 11:35:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:41 UTC