49 const std::string& sid()
const noexcept {
return sid_; }
50 const std::string& name()
const noexcept {
return name_; }
51 TrackKind kind()
const noexcept {
return kind_; }
52 TrackSource source()
const noexcept {
return source_; }
53 bool simulcasted()
const noexcept {
return simulcasted_; }
54 std::uint32_t width()
const noexcept {
return width_; }
55 std::uint32_t height()
const noexcept {
return height_; }
56 const std::string& mimeType()
const noexcept {
return mime_type_; }
57 bool muted()
const noexcept {
return muted_; }
58 void setMuted(
bool muted)
noexcept { muted_ = muted; }
60 EncryptionType encryptionType()
const noexcept {
return encryption_type_; }
61 const std::vector<AudioTrackFeature>& audioFeatures()
const noexcept {
return audio_features_; }
64 uintptr_t
ffiHandleId() const noexcept {
return handle_.get(); }
67 std::shared_ptr<Track>
track() const noexcept {
return track_; }
68 void setTrack(
const std::shared_ptr<Track>& track)
noexcept { track_ = track; }
71 TrackPublication(FfiHandle handle, std::string sid, std::string name, TrackKind kind, TrackSource source,
72 bool simulcasted, std::uint32_t width, std::uint32_t height, std::string mime_type,
bool muted,
73 EncryptionType encryption_type, std::vector<AudioTrackFeature> audio_features);
76 std::shared_ptr<Track> track_;
82 bool simulcasted_{
false};
83 std::uint32_t width_{0};
84 std::uint32_t height_{0};
85 std::string mime_type_;
88 std::vector<AudioTrackFeature> audio_features_;