Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMediaRtpAudioStream class manages a single audio stream in an RTP session. More...
#include <QMediaRtpAudioStream>
Inherits QMediaRtpStream.
The QMediaRtpAudioStream class manages a single audio stream in an RTP session.
DTMF events may be sent over an audio stream as either tones added to the audio signal, or as separate RTP packets. To send DTMF events as RTP packets a valid payload with the encoding name telephone-event must be set with setTelephonyEventPayload(). If no such payload is set the DTMF tones will be added to the audio stream instead. If a stream supports DTMF RTP packets then a telephone-event payload will be included in the list supported audio payloads given by the QMediaRtpSession that created it.
The event codes for DTMF tones.
Constant | Value |
---|---|
QMediaRtpAudioStream::Dtmf_0 | 0 |
QMediaRtpAudioStream::Dtmf_1 | 1 |
QMediaRtpAudioStream::Dtmf_2 | 2 |
QMediaRtpAudioStream::Dtmf_3 | 3 |
QMediaRtpAudioStream::Dtmf_4 | 4 |
QMediaRtpAudioStream::Dtmf_5 | 5 |
QMediaRtpAudioStream::Dtmf_6 | 6 |
QMediaRtpAudioStream::Dtmf_7 | 7 |
QMediaRtpAudioStream::Dtmf_8 | 8 |
QMediaRtpAudioStream::Dtmf_9 | 9 |
QMediaRtpAudioStream::Dtmf_Star | 10 |
QMediaRtpAudioStream::Dtmf_Pound | 11 |
QMediaRtpAudioStream::Dtmf_A | 12 |
QMediaRtpAudioStream::Dtmf_B | 13 |
QMediaRtpAudioStream::Dtmf_C | 14 |
QMediaRtpAudioStream::Dtmf_D | 15 |
Contructs a new RTP audio stream with the given parent which sends and/or receives data according to direction.
Destroys an RTP audio stream.
Sets the payload to be used for sending telephony events.
Returns true if the payload was successfully changed and false otherwise.
See also telephonyEventPayload().
Starts sending a telephony event at the given volume on a stream.
Note: Telephony events can only be sent on Audio streams.
See also stopTelephonyEvent().
Stops sending a telephony event.
See also startTelephonyEvent().
Returns the payload used for sending telephony events.
See also setTelephonyEventPayload().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |