35 const std::string&
getId()
const;
45 bool autoRestart_ {
false};
49 std::shared_ptr<jami::video::VideoInput>
videoInput_;
51 std::shared_ptr<jami::AudioInput> audioInput_;
52 std::shared_ptr<MediaDemuxer> demuxer_;
59 inline bool hasAudio()
const {
return audioStream_ >= 0; }
61 inline bool hasVideo()
const {
return videoStream_ >= 0; }
63 int audioStream_ = -1;
64 int videoStream_ = -1;
67 void playFileFromBeginning();
68 std::atomic_bool paused_ {
true};
69 bool readBufferOverflow_ =
false;
70 bool audioStreamEnded_ {
false};
71 bool videoStreamEnded_ {
false};
73 bool configureMediaInputs();
77 void flushMediaBuffers();
79 bool streamsFinished();