QXmppCallStream.h
/*
* Copyright (C) 2020 The QXmpp developers
*
* Author:
* Niels Ole Salscheider
*
* Source:
* https://github.com/qxmpp-project/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
#ifndef QXMPPCALLSTREAM_H
#define QXMPPCALLSTREAM_H
#include <QXmppGlobal.h>
#include <functional>
#include <QObject>
typedef struct _GstPad GstPad;
typedef struct _GstElement GstElement;
class QXmppCallStreamPrivate;
class QXmppIceConnection;
class QXmppCall;
class QXmppCallPrivate;
class QXMPP_EXPORT QXmppCallStream : public QObject
{
Q_OBJECT
public:
QString creator() const;
QString media() const;
QString name() const;
int id() const;
void setReceivePadCallback(std::function<void(GstPad *)> cb);
void setSendPadCallback(std::function<void(GstPad *)> cb);
private:
QXmppCallStream(GstElement *pipeline, GstElement *rtpbin,
QString media, QString creator, QString name, int id);
QXmppCallStreamPrivate *d;
friend class QXmppCall;
friend class QXmppCallPrivate;
};
#endif
QXmppCallStream
The QXmppCallStream class represents an RTP stream in a VoIP call.
Definition: QXmppCallStream.h:48
QXmppCall
The QXmppCall class represents a Voice-Over-IP call to a remote party.
Definition: QXmppCall.h:44
QXmppIceConnection
The QXmppIceConnection class represents a set of UDP sockets capable of performing Interactive Connec...
Definition: QXmppStun.h:242