diff options
| author | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2019-05-17 14:30:02 -0700 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-03-16 22:22:59 +0100 |
| commit | 90036fc2cf5918c028f043edff7f5d38d1efb4cc (patch) | |
| tree | 4818d8c4e6ec3778e2dd8a2e356faf1b9e062902 /src/client/QXmppCallStream.h | |
| parent | c67ccc6d939b8f1efd118f92baea997fe1b7f1a6 (diff) | |
| download | qxmpp-90036fc2cf5918c028f043edff7f5d38d1efb4cc.tar.gz | |
Port QXmppCallManager to use GStreamer
Diffstat (limited to 'src/client/QXmppCallStream.h')
| -rw-r--r-- | src/client/QXmppCallStream.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/client/QXmppCallStream.h b/src/client/QXmppCallStream.h new file mode 100644 index 00000000..a9103384 --- /dev/null +++ b/src/client/QXmppCallStream.h @@ -0,0 +1,66 @@ +/* + * 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 <gst/gst.h> + +#include <QObject> + +class QXmppCallStreamPrivate; +class QXmppIceConnection; +class QXmppCall; +class QXmppCallPrivate; + +/// \brief The QXmppCallStream class represents an RTP stream in a VoIP call. +/// +/// \note THIS API IS NOT FINALIZED YET +/// +/// \since QXmpp 1.3 + +class QXMPP_EXPORT QXmppCallStream : public QObject +{ + Q_OBJECT + +public: + QString creator() const; + QString media() const; + QString name() const; + int id() const; + void setReceivePadCallback(void (*cb)(GstPad *)); + void setSendPadCallback(void (*cb)(GstPad *)); + +private: + QXmppCallStream(GstElement *pipeline, GstElement *rtpbin, + QString media, QString creator, QString name, int id); + + QXmppCallStreamPrivate *d; + + friend class QXmppCall; + friend class QXmppCallPrivate; +}; + +#endif |
