Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies in description of RTCDTMFToneChangeEvent.tone #1014

Closed
a2sheppy opened this issue Feb 6, 2017 · 5 comments
Closed

Inconsistencies in description of RTCDTMFToneChangeEvent.tone #1014

a2sheppy opened this issue Feb 6, 2017 · 5 comments
Assignees

Comments

@a2sheppy
Copy link

a2sheppy commented Feb 6, 2017

The descriptions of the tone attribute on the RTCDTMFToneChangeEvent interface vary throughout the document.

In some places, it's described as indicating that the previous tone has finished playing:

Here, it's described as indicating that all tones have finished playing and that toneBuffer is empty:

(a) Which is correct?

(b) The doc needs to be revised to reflect that everywhere.

@aboba
Copy link
Contributor

aboba commented Feb 6, 2017

Looking at the definition of insertDTMF, it would appear that the tonechange event is fired when the toneBuffer is empty.

@a2sheppy
Copy link
Author

a2sheppy commented Feb 7, 2017 via email

@alvestrand
Copy link
Contributor

The intent of the toneChange event was that it would fire whenever the tone changed - that is, at the end of each tone, including the one that makes the tone buffer empty.
This would be used to do things like move the highlight on a virtual dialpad if you want a visual indication that the tones are playing, or syntesize a "beep" that the user can listen to (there's no automatic feedback to the user that tones are playing).

I think this is consistent with the current description - it always says "indicates the tone that has just begun playing" or equivalent, and listing "empty string" as a special case indicating end of buffer.

If it was fired only when the tone buffer was empty, there would be no use for the "tone" argument.

@alvestrand
Copy link
Contributor

There is an inconsistency that makes it look as if the event fires with an empty string argument at the end of a tone and the beginning of the inter-tone gap, even when the toneBuffer is not empty; I think this is inconsistent and should be removed.

I agree with Bernard's fix for this case.

@a2sheppy
Copy link
Author

a2sheppy commented Feb 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants