50 const std::string &sid()
const noexcept {
return sid_; }
51 const std::string &name()
const noexcept {
return name_; }
52 TrackKind kind()
const noexcept {
return kind_; }
53 TrackSource source()
const noexcept {
return source_; }
54 bool simulcasted()
const noexcept {
return simulcasted_; }
55 std::uint32_t width()
const noexcept {
return width_; }
56 std::uint32_t height()
const noexcept {
return height_; }
57 const std::string &mimeType()
const noexcept {
return mime_type_; }
58 bool muted()
const noexcept {
return muted_; }
59 void setMuted(
bool muted)
noexcept { muted_ = muted; }
61 EncryptionType encryptionType()
const noexcept {
return encryption_type_; }
62 const std::vector<AudioTrackFeature> &audioFeatures()
const noexcept {
63 return audio_features_;
67 uintptr_t
ffiHandleId() const noexcept {
return handle_.get(); }
70 std::shared_ptr<Track>
track() const noexcept {
return track_; }
71 void setTrack(
const std::shared_ptr<Track> &
track)
noexcept {
76 TrackPublication(FfiHandle handle, std::string sid, std::string name,
77 TrackKind kind, TrackSource source,
bool simulcasted,
78 std::uint32_t width, std::uint32_t height,
79 std::string mime_type,
bool muted,
80 EncryptionType encryption_type,
81 std::vector<AudioTrackFeature> audio_features);
84 std::shared_ptr<Track> track_;
90 bool simulcasted_{
false};
91 std::uint32_t width_{0};
92 std::uint32_t height_{0};
93 std::string mime_type_;
95 EncryptionType encryption_type_;
96 std::vector<AudioTrackFeature> audio_features_;