LiveKit C++ Client SDK v1.13.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
local_track_publication.h
1/*
2 * Copyright 2025 LiveKit
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an “AS IS” BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include "livekit/track_publication.h"
20#include "livekit/visibility.h"
21
22namespace livekit {
23
24namespace proto {
25class OwnedTrackPublication;
26class TrackPublicationInfo;
27} // namespace proto
28
30class LIVEKIT_API LocalTrackPublication : public TrackPublication {
31public:
34 explicit LocalTrackPublication(const proto::OwnedTrackPublication& owned);
35
36private:
37 friend class Room;
38
40 void updateInfo(const proto::TrackPublicationInfo& info);
41};
42
43} // namespace livekit
A track published by a local participant.
Definition local_track_publication.h:30
LocalTrackPublication(const proto::OwnedTrackPublication &owned)
Note, this LocalTrackPublication is constructed internally only; safe to accept proto::OwnedTrackPubl...
Represents a LiveKit room session.
Definition room.h:145
Base class for a track that has been published to a room.
Definition track_publication.h:39
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25