74 std::size_t capacity{0};
78 VideoBufferType format{VideoBufferType::RGBA};
82 static std::shared_ptr<VideoStream>
83 fromTrack(
const std::shared_ptr<Track> &track,
const Options &options);
86 static std::shared_ptr<VideoStream> fromParticipant(
Participant &participant,
87 TrackSource track_source,
116 void initFromTrack(const std::shared_ptr<
Track> &track,
118 void initFromParticipant(
Participant &participant, TrackSource source,
122 void onFfiEvent(const proto::FfiEvent &event);
128 mutable std::mutex mutex_;
129 std::condition_variable cv_;
131 std::
size_t capacity_{0};
136 FfiHandle stream_handle_;
139 std::int32_t listener_id_{0};