MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
QtRtpPayloader.h
Go to the documentation of this file.
1//
2// Copyright (c) 2025, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
14
15#ifndef QT6_QTRTPPAYLOADER_H_
16#define QT6_QTRTPPAYLOADER_H_
17
18#include <QByteArray>
19#include <QObject>
20
21#include "qt6/QtCommon.h"
22#include "rtp/rtp.h"
23
24namespace mediax::qt6 {
25
27class QtRtpPayloader : public QObject {
28 Q_OBJECT
29
30 public:
36 explicit QtRtpPayloader(QObject* parent = nullptr);
37
43 virtual void setStreamInfo(const mediax::rtp::StreamInformation& stream_information) = 0;
44
50 Q_INVOKABLE virtual bool open() = 0;
51
56 Q_INVOKABLE virtual void start() = 0;
57
62 Q_INVOKABLE virtual void stop() = 0;
63
68 Q_INVOKABLE virtual void close() = 0;
69
76 Q_INVOKABLE virtual int transmit(Frame* frame, bool blocking = true) = 0;
77
78 public slots:
79
85 virtual void sendFrame(Frame frame) = 0;
86};
87
88} // namespace mediax::qt6
89
90#endif // QT6_QTRTPPAYLOADER_H_
A RTP payloader base class.
Definition QtRtpPayloader.h:27
virtual void sendFrame(Frame frame)=0
A frame to transmit.
virtual Q_INVOKABLE void start()=0
Start the RTP stream.
virtual Q_INVOKABLE int transmit(Frame *frame, bool blocking=true)=0
Transmit a frame to the RTP stream.
virtual void setStreamInfo(const mediax::rtp::StreamInformation &stream_information)=0
Set the Stream Info object.
virtual Q_INVOKABLE void stop()=0
Stop the RTP stream.
virtual Q_INVOKABLE void close()=0
Close the RTP stream.
virtual Q_INVOKABLE bool open()=0
Open the RTP stream.
The Qt wrappers namespace.
Definition QtRtpAv1Depayloader.cc:19
RTP streaming video types.
A structure to store frames of video.
Definition QtCommon.h:21
Struct capturing all stream information.
Definition rtp_types.h:223