We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd5114 commit aaaba24Copy full SHA for aaaba24
webrtc/src/track/track_local/mod.rs
@@ -86,6 +86,16 @@ impl TrackLocalContext {
86
pub fn id(&self) -> String {
87
self.id.clone()
88
}
89
+
90
+ /// mid returns the id of media associated with the RTP stream
91
+ pub fn mid(&self) -> Option<SmolStr> {
92
+ self.mid.clone()
93
+ }
94
95
+ /// paused returns a boolean indicating whether the track is currently paused
96
+ pub fn paused(&self) -> Arc<AtomicBool> {
97
+ self.paused.clone()
98
99
100
/// TrackLocal is an interface that controls how the user can send media
101
/// The user can provide their own TrackLocal implementations, or use
0 commit comments