6#include <QtCore/QObject>
7#include <QtCore/QString>
62 void _onActiveChanged();
65 void _stopRecording();
68 void _updateStatus(T
Status::* field,
const T& value)
70 if (_status.*field != value) {
71 _status.*field = value;
78 void _restartStream();
82 void _recover(
const PipelineSession::Failure& failure);
84 void _onHalted(
const QString& message);
86 std::optional<RecordingBranch::Request> _recordingRequest()
const;
87 void _onWatchdogTick();
89 QString _redactedUri()
const;
92 void onSessionFailed(
const PipelineSession::Failure& failure)
override;
94 void onDecodingChanged(
bool decoding)
override;
95 void onDecoderNameChanged(
const QString& name)
override;
97 void onRecordingFileOpened(
const QString& file)
override;
98 void onRecordingFileClosed(
const QString& file,
const QString& error)
override;
99 void onRecordingFailed(
const QString& file,
const QString& error,
bool fileOpened)
override;
100 void onRecordingNeedsNewFile(
const QString& file)
override;
102 QTimer*
const _watchdogTimer;
103 StreamSupervisor*
const _supervisor;
104 StreamWatchdog _watchdog;
105 PipelineDotDumper _dotDumper;
111 std::optional<RecordingPlan> _recording;
114 PipelineSession* _session =
nullptr;
116 VideoStreamStatsSampler _statsSampler;
struct _GstElement GstElement
virtual void onDecoderFailing()=0
void statusChanged(const GstReceiverStatus &status)
void errorOccurred(const QString &message)
GstRecordingRequest RecordingRequest
void setMaxRecordingPartDuration(std::chrono::milliseconds duration)
GstReceiverRequest Request
void apply(const Request &request)
Steers the stream towards request, acting on what differs from the previous one.
GstReceiverWorker(QObject *parent=nullptr)
void recordingStarted(const QString &file)
void shutdown()
Stops everything and quits the thread.
~GstReceiverWorker() override
GstElement * pipeline() const
void graphicsDeviceLost()
void recordingFinished(const QString &file, const QString &error)
virtual void onSessionStreaming()=0
The first frame reached the tee.
virtual void onSessionGraphicsDeviceLost()=0
static constexpr std::chrono::minutes kMaxPartDuration
Everything the receiver asks for, as it stands after each of its requests.
What the worker reports, as it stands after each change.