Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMediaRtpStream class manages a single stream in an RTP session. More...
#include <QMediaRtpStream>
Inherits QObject.
Inherited by QMediaRtpAudioStream and QMediaRtpVideoStream.
The QMediaRtpStream class manages a single stream in an RTP session.
A QMediaRtpStream is composed of an inbound data stream, an outbound data stream or a combined inbound and outbound stream. The inbound and outbound connections are established separately so it is possible for example to start a stream listening for incoming data and start sending sometime later.
The payload of an outbound stream must be set with setOutboundPayload() before it can be connected.
The payload of an inbound streams is determined from the stream data. When the payload changes the stream will emit the inboundPayloadChanged() signal.
RTP streams can be created using QMediaRtpSession.
Identifies the direction of an RTP stream.
Constant | Value | Description |
---|---|---|
QMediaRtpStream::SendOnly | 0x01 | The stream sends data. |
QMediaRtpStream::ReceiveOnly | 0x02 | The stream receives data. |
QMediaRtpStream::SendReceive | SendOnly | ReceiveOnly | The stream both sends and receives data. |
Identifies the current state of an RTP stream.
Constant | Value | Description |
---|---|---|
QMediaRtpStream::Connecting | 0 | The stream is in the process of establishing a connection. |
QMediaRtpStream::Connected | 1 | The stream is connected. |
QMediaRtpStream::Disconnecting | 2 | The stream is in the process of tearing down a connection. |
QMediaRtpStream::Disconnected | 3 | The stream is disconnected. |
Identifies the type of an RTP stream.
Constant | Value | Description |
---|---|---|
QMediaRtpStream::Audio | 0 | The stream is an audio stream. |
QMediaRtpStream::Video | 1 | The stream is a video stream. |
Constructs a type RTP stream with the given parent which sends and/or receives data according to direction.
Destroys a stream.
Starts the inbound stream listening for data on the given address and port.
See also inboundAddress(), inboundPort(), inboundState(), disconnectInbound(), and connectOutbound().
Starts the outbound stream sending data to a host with the given address and port.
See also outboundAddress(), outboundPort(), outboundState(), disconnectOutbound(), and connectInbound().
Returns the direction of a stream.
Stops the inbound stream receiving data.
Stops the outbound stream sending data.
Returns the address the inbound stream is receiving data at.
See also setInboundAddress().
Signals that the inbound stream has been connected.
Signals that the inbound stream has been disconnected.
Signals that an error occurred in the inbound stream.
See also setInboundError().
Returns a string describing the last error to occur to the inbound stream.
Returns the payload of the inbound stream.
See also setInboundPayload().
Signals that the payload of the incoming stream has changed.
Returns a list of payloads the inbound stream can expect to receive.
See also setInboundPayloads().
Returns the port number the inbound stream is receiving data on.
See also setInboundPort().
Returns the state of the inbound stream.
See also setInboundState().
Signals that the state of the inbound stream has changed.
Returns the address the outbound stream is sending to.
See also setOutboundAddress().
Signals that the outbound streamm has been connected.
Signals that the outbound stream has been disconnected.
Signals that an error occurred in the outbound stream.
See also setOutboundError().
Returns a string describing the last error to occur to the outbound stream.
Returns the payload used for outbound data.
See also setOutboundPayload().
Returns the port number the outbound stream is sending to.
See also setOutboundPort().
Returns the current state of the outbound stream.
See also setOutboundState().
Signals that the state of the outbound stream has changed.
Sets the address the inbound stream listens for data at.
See also inboundAddress().
Sets a string describing the last error to the inbound stream.
This will emit the inboundError() signal.
See also inboundError().
Sets the payload of the inbound stream.
See also inboundPayload().
Sets a list of payloads the inbound stream can expect to receive.
See also inboundPayloads().
Sets the port the inbound stream listens for data on.
See also inboundPort().
Sets the current state of the inbound stream.
This emits the inboundStateChanged() signal.
See also inboundState().
Sets the address the outbound stream sends data to.
See also outboundAddress().
Sets a string describing the last error to occur the the outbound stream.
See also outboundError().
Sets the payload to used for outbound data.
Returns true if the payload could be set and false otherwise.
Setting the payload will fail if the session does not support any equivalent outbound payload.
See also outboundPayload(), QMediaRtpSession::supportedOutboundPayloads(), and QMediaRtpPayload::isEquivalent().
Sets the port the outbound stream sends data to.
See also outboundPort().
Sets the state of the outbound stream.
This will emit the outboundStateChanged() signal.
See also outboundState().
Returns the type of a stream.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |