LiveKit C++ Client SDK v1.1.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
remote_audio_track.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 <memory>
20#include <string>
21
22#include "livekit/track.h"
23#include "livekit/visibility.h"
24
25namespace livekit {
26
27namespace proto {
28class OwnedTrack;
29}
30
31class AudioSource;
32
43class LIVEKIT_API RemoteAudioTrack : public Track {
44public:
48 explicit RemoteAudioTrack(const proto::OwnedTrack& track);
49
52 std::string toString() const;
53};
54
55} // namespace livekit
Represents an audio track published by a remote participant and subscribed to by the local participan...
Definition remote_audio_track.h:43
std::string toString() const
Returns a concise, human-readable string summarizing the track, including its SID and name.
RemoteAudioTrack(const proto::OwnedTrack &track)
Constructs a RemoteAudioTrack from an internal protocol-level OwnedTrack description provided by the ...
Base class for local and remote media tracks.
Definition track.h:77
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25