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
Comments
Looking at the definition of insertDTMF, it would appear that the tonechange event is fired when the toneBuffer is empty. |
That’s what I gather as well. The text for the event’s description needs to be updated to match everywhere.
… On Feb 6, 2017, at 2:37 PM, Bernard Aboba ***@***.***> wrote:
Looking at the definition of insertDTMF, it would appear that the tonechange event is fired when the toneBuffer is empty.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1014 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABkL32M1q_oPdLgWBn-Fpx-dcK9ksnELks5rZ3Z_gaJpZM4L4jIP>.
|
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. 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. |
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. |
Certainly. The only question I had was whether it fired only at the end of the buffer, or if it fired for each individual tone, after it finished playing; This would let you know when the inter-tone gap began.
… On Feb 7, 2017, at 3:35 AM, Harald Alvestrand ***@***.***> wrote:
If it was fired only when the tone buffer was empty, there would be no use for the "tone" argument.
|
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.
The text was updated successfully, but these errors were encountered: