|
LiveKit C++ SDK
Real-time audio/video SDK for C++
|
#include <remote_video_track.h>


Public Member Functions | |
| RemoteVideoTrack (const proto::OwnedTrack &track) | |
| std::string | to_string () const |
Public Member Functions inherited from livekit::Track | |
| const std::string & | sid () const noexcept |
| const std::string & | name () const noexcept |
| TrackKind | kind () const noexcept |
| StreamState | stream_state () 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 > | mime_type () const noexcept |
| bool | has_handle () const noexcept |
| uintptr_t | ffi_handle_id () const noexcept |
| std::future< std::vector< RtcStats > > | getStats () const |
| void | setStreamState (StreamState s) noexcept |
| void | setMuted (bool m) noexcept |
| void | setName (std::string n) noexcept |
Additional Inherited Members | |
Protected Member Functions inherited from livekit::Track | |
| 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) |
Represents an video track published by a remote participant and subscribed to by the local participant.
RemoteVideoTrack instances are created internally when the SDK receives a kTrackSubscribed event. Each instance is owned by its associated RemoteParticipant and delivered to the application via TrackSubscribedEvent.
Applications generally interact with RemoteVideoTrack through events and RemoteTrackPublication, not through direct construction.
|
explicit |
Constructs a RemoteVideoTrack from an internal protocol-level OwnedTrack description provided by the signaling/FFI layer. This constructor is intended for internal SDK use only.
| std::string livekit::RemoteVideoTrack::to_string | ( | ) | const |
Returns a concise, human-readable string summarizing the track, including its SID and name. Useful for debugging and logging.