W3C home > Mailing lists > Public > public-webrtc@w3.org > November 2012

RE: DTMF - the "Object Oriented" approach

From: Sunyang (Eric) <eric.sun@huawei.com>
Date: Fri, 16 Nov 2012 07:15:01 +0000
To: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <9254B5E6361B1648AFC00BA447E6E8C32AED8190@szxeml545-mbx.china.huawei.com>
The RTCDTMFSendingMediaStreamTrack is ok, but the name is a little longer, can we change it to a shorter name for reference?
For example: RTCDTMFTrack.

Yang
Huawei

> -----Original Message-----
> From: Harald Alvestrand [mailto:harald@alvestrand.no]
> Sent: Wednesday, November 14, 2012 10:46 PM
> To: public-webrtc@w3.org
> Subject: DTMF - the "Object Oriented" approach
> 
> Takeaways from Lyon were that:
> 
> - Executing DTMF needs reference to an audio track (to know where to
> send the data) and to a PeerConnection (to know that we've successfully
> negotiated use of the DTMF codec).
> - The WG preferred an "object oriented" model: creating a DTMF handler
> object, rather than the "fortran" approach of having all functions
> directly on the PeerConnection.
> 
> Suggested edits, delta from the October 19 version of the spec:
> 
> - In section 8.4, rename AudioMediaStreamTrack to
> DTMFSendingMediaStreamTrack.
> Add the following text:
> 
> A RTCDTMFSendingMediaStreamTrack is created by calling the
> createDTMFSender() method on a PeerConnection. This constructs an object
> that decorates a MediaStreamTrack with the functions required to send
> DTMF.
> 
> 
> - In section 4.3.2, add the function
> 
> RTCDTMFSendingMediaStreamTrack createDTMFSender(MediaStreamTrack
> track);
> 
> - In section 4.3.2.2, add the paragraph
> 
> createDTMFSender
> 
> The createDTMFSender() creates an RTCDTMFSendingMediaStreamTrack
> that
> references the given MediaStreamTrack. The MediaStreamTrack MUST be an
> element of a MediaStream that's currently in the PC's localStreams
> attribute; if not, throw an Illegal Argument Exception. [NOTE - get
> correct name for exception before inserting]
Received on Friday, 16 November 2012 07:15:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 November 2012 07:15:50 GMT