QXmppCallStream Class

Header: #include <QXmppCallStream.h>
Since: QXmpp 1.3
Inherits: QXmppLoggable

Public Functions

QString creator() const
int id() const
QString media() const
QString name() const
void setReceivePadCallback(std::function<void (GstPad *)> cb)
void setSendPadCallback(std::function<void (GstPad *)> cb)

Detailed Description

The QXmppCallStream class represents an RTP stream in a VoIP call.

Note: THIS API IS NOT FINALIZED YET

Member Function Documentation

QString QXmppCallStream::creator() const

Returns the JID of the creator of the call stream.

int QXmppCallStream::id() const

Returns the local ID of the stream.

QString QXmppCallStream::media() const

Returns the media type of the stream, "audio" or "video".

QString QXmppCallStream::name() const

Returns the name of the stream (e.g. "webcam" or "voice").

There is no defined format and there are no predefined values for this.

void QXmppCallStream::setReceivePadCallback(std::function<void (GstPad *)> cb)

Sets a gstreamer receive pad callback.

Can be used to process or display the received data.

cb.

void QXmppCallStream::setSendPadCallback(std::function<void (GstPad *)> cb)

Sets a gstreamer send pad callback.

Can be used to send the stream input.

cb.