68 std::size_t capacity{0};
72 VideoBufferType format{VideoBufferType::RGBA};
76 static std::shared_ptr<VideoStream>
77 fromTrack(
const std::shared_ptr<Track> &track,
const Options &options);
80 static std::shared_ptr<VideoStream> fromParticipant(
Participant &participant,
81 TrackSource track_source,
110 void initFromTrack(const std::shared_ptr<
Track> &track,
112 void initFromParticipant(
Participant &participant, TrackSource source,
116 void onFfiEvent(const proto::FfiEvent &event);
122 mutable std::mutex mutex_;
123 std::condition_variable cv_;
125 std::
size_t capacity_{0};
130 FfiHandle stream_handle_;
133 std::int64_t listener_id_{0};