BlueGit

ict rusty-teams

Files

rusty-teams / vendor / libwebrtc / src / audio_track.rs

audio_track.rs

audio_track.rs 1.1 KiB Download Raw
1// Copyright 2025 LiveKit, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15use std::fmt::Debug;
16
17use crate::{
18 imp::audio_track as imp_at,
19 media_stream_track::{media_stream_track, RtcTrackState},
20};
21
22#[derive(Clone)]
23pub struct RtcAudioTrack {
24 pub(crate) handle: imp_at::RtcAudioTrack,
25}
26
27impl RtcAudioTrack {
28 media_stream_track!();
29}
30
31impl Debug for RtcAudioTrack {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 f.debug_struct("RtcAudioTrack")
34 .field("id", &self.id())
35 .field("enabled", &self.enabled())
36 .field("state", &self.state())
37 .finish()
38 }
39}