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

QMediaRtpVideoStream Class Reference
[QtMediaModule]

The QMediaRtpVideoStream class manages a single video stream in an RTP session. More...

    #include <QMediaRtpVideoStream>

Inherits QMediaRtpStream.

Public Functions

Additional Inherited Members


Detailed Description

The QMediaRtpVideoStream class manages a single video stream in an RTP session.

Outbound video data is sourced from a QCameraDevice set with the setCamera() function. Depending on the payload the video stream may not be able to accept all video formats output by the camera, a list of formats the stream can accept for a payload is given by the supportedVideoFormats() function.

Inbound video data is rendered to a QVideoSurface given by the videoSurface() function.


Member Function Documentation

QMediaRtpVideoStream::QMediaRtpVideoStream ( Direction direction, QObject * parent = 0 )

Contructs a new RTP video stream with the given parent which sends and/or receives data according to direction.

QMediaRtpVideoStream::~QMediaRtpVideoStream ()

Destroys an RTP video stream.

QCameraPreviewCapture * QMediaRtpVideoStream::camera () const   [pure virtual]

Returns the camera the RTP stream sources video data from.

See also setCamera().

void QMediaRtpVideoStream::setCamera ( QCameraPreviewCapture * camera )   [pure virtual]

Sets the camera the RTP stream sources video data from.

See also camera().

QList<uint> QMediaRtpVideoStream::supportedVideoFormats ( const QMediaRtpPayload & payload ) const   [pure virtual]

Returns a list of video formats that an RTP stream can accept as input for a payload.

QVideoSurface * QMediaRtpVideoStream::videoSurface () const   [pure virtual]

Returns the video surface received video data is painted to.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3