Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMediaRtpSession Class Reference
[QtMediaModule]

The QMediaRtpSession class provides a means establishing remote media connections. More...

    #include <QMediaRtpSession>

Inherits QObject.

Public Functions

Additional Inherited Members


Detailed Description

The QMediaRtpSession class provides a means establishing remote media connections.

An RTP session manages a set of related RTP streams, it provides functions for creating streams and managing their lifetimes.

The RTP session also provides information about the payloads supported by the stream provider. A list of payloads that can be received for a stream type is given by supportedInboundPayloads() and a similar list for payloads that can be sent is given by supportedOutboundPayloads().


Member Function Documentation

QMediaRtpSession::QMediaRtpSession ( QObject * parent = 0 )

Creates new RTP session with the given parent.

QMediaRtpSession::~QMediaRtpSession ()

Destroys a session.

QMediaRtpAudioStream * QMediaRtpSession::addAudioStream ( QMediaRtpStream::Direction direction )

Adds an new audio stream to the session which sends and/or receives data according to direction.

Returns the new stream, or a null pointer if the stream could not be created.

QMediaRtpStream * QMediaRtpSession::addStream ( QMediaRtpStream::Type type, QMediaRtpStream::Direction direction )

Adds a new type stream to the session which sends and/or receives data according to direction.

Returns the new stream, or a null pointer if the stream could not be created.

QMediaRtpVideoStream * QMediaRtpSession::addVideoStream ( QMediaRtpStream::Direction direction )

Adds an new video stream to the session which sends and/or receives data according to direction.

Returns the new stream, or a null pointer if the stream could not be created.

void QMediaRtpSession::removeStream ( QMediaRtpStream * stream )

Removes a stream from the session.

QMediaRtpStream * QMediaRtpSession::stream ( int index ) const

Returns the stream at index.

int QMediaRtpSession::streamCount () const

Returns the number of streams in the session.

QList<QMediaRtpPayload> QMediaRtpSession::supportedInboundPayloads ( QMediaRtpStream::Type type ) const

Returns a list of type payloads a session is able to receive.

QList<QMediaRtpPayload> QMediaRtpSession::supportedOutboundPayloads ( QMediaRtpStream::Type type ) const

Returns a list of type payloads a session is able receive.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3