|
LiveKit C++ Client SDK v1.1.0
Real-time audio/video/data SDK for C++
|
Base class for local and remote media tracks. More...
#include <track.h>

Public Member Functions | |
| const std::string & | sid () const noexcept |
| const std::string & | name () const noexcept |
| TrackKind | kind () const noexcept |
| StreamState | streamState () const noexcept |
| bool | muted () const noexcept |
| bool | remote () const noexcept |
| std::optional< TrackSource > | source () const noexcept |
| std::optional< bool > | simulcasted () const noexcept |
| std::optional< uint32_t > | width () const noexcept |
| std::optional< uint32_t > | height () const noexcept |
| std::optional< std::string > | mimeType () const noexcept |
| bool | hasHandle () const noexcept |
| uintptr_t | ffiHandleId () const noexcept |
| std::future< std::vector< RtcStats > > | getStats () const |
| virtual void | setPublication (const std::shared_ptr< LocalTrackPublication > &publication) noexcept |
| After publishing a local track, associates the LocalTrackPublication with this track. | |
| void | setStreamState (StreamState s) noexcept |
| void | setMuted (bool m) noexcept |
| void | setName (std::string n) noexcept |
Protected Member Functions | |
| Track (FfiHandle handle, std::string sid, std::string name, TrackKind kind, StreamState state, bool muted, bool remote) | |
| void | setPublicationFields (std::optional< TrackSource > source, std::optional< bool > simulcasted, std::optional< uint32_t > width, std::optional< uint32_t > height, std::optional< std::string > mime_type) |
Base class for local and remote media tracks.
|
inlinevirtualnoexcept |
After publishing a local track, associates the LocalTrackPublication with this track.
Default implementation is a no-op (e.g. remote tracks).
Reimplemented in livekit::LocalAudioTrack, and livekit::LocalVideoTrack.