LiveKit C++ SDK
Real-time audio/video SDK for C++
Loading...
Searching...
No Matches
livekit::TrackPublication Class Reference

#include <track_publication.h>

Inheritance diagram for livekit::TrackPublication:
Collaboration diagram for livekit::TrackPublication:

Public Member Functions

 TrackPublication (const TrackPublication &)=delete
 
TrackPublicationoperator= (const TrackPublication &)=delete
 
 TrackPublication (TrackPublication &&) noexcept=default
 
TrackPublicationoperator= (TrackPublication &&) noexcept=default
 
const std::string & sid () const noexcept
 
const std::string & name () const noexcept
 
TrackKind kind () const noexcept
 
TrackSource source () const noexcept
 
bool simulcasted () const noexcept
 
std::uint32_t width () const noexcept
 
std::uint32_t height () const noexcept
 
const std::string & mimeType () const noexcept
 
bool muted () const noexcept
 
void setMuted (bool muted) noexcept
 
EncryptionType encryptionType () const noexcept
 
const std::vector< AudioTrackFeature > & audioFeatures () const noexcept
 
uintptr_t ffiHandleId () const noexcept
 Underlying FFI handle value.
 
std::shared_ptr< Tracktrack () const noexcept
 Associated Track (if attached).
 
void setTrack (const std::shared_ptr< Track > &track) noexcept
 

Protected Member Functions

 TrackPublication (FfiHandle handle, std::string sid, std::string name, TrackKind kind, TrackSource source, bool simulcasted, std::uint32_t width, std::uint32_t height, std::string mime_type, bool muted, EncryptionType encryption_type, std::vector< AudioTrackFeature > audio_features)
 

Protected Attributes

FfiHandle handle_
 
std::shared_ptr< Tracktrack_
 
std::string sid_
 
std::string name_
 
TrackKind kind_
 
TrackSource source_
 
bool simulcasted_ {false}
 
std::uint32_t width_ {0}
 
std::uint32_t height_ {0}
 
std::string mime_type_
 
bool muted_ {false}
 
EncryptionType encryption_type_
 
std::vector< AudioTrackFeature > audio_features_
 

Detailed Description

C++ TrackPublication.

Wraps the immutable publication info plus an FFI handle, and holds a weak reference to the associated Track (if any).


The documentation for this class was generated from the following file: