
Build media and live-kit in test-mode on non-MacOS (Related to https://github.com/zed-industries/zed/issues/5391 https://github.com/zed-industries/zed/issues/5395 https://github.com/zed-industries/zed/issues/5394) This makes it possible to build the media and live-kit crates on non-MacOS Release Notes: - N/A
35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
use std::sync::Arc;
|
|
|
|
#[cfg(all(target_os = "macos", not(any(test, feature = "test-support"))))]
|
|
pub mod prod;
|
|
|
|
#[cfg(all(target_os = "macos", not(any(test, feature = "test-support"))))]
|
|
pub use prod::*;
|
|
|
|
#[cfg(any(test, feature = "test-support", not(target_os = "macos")))]
|
|
pub mod test;
|
|
|
|
#[cfg(any(test, feature = "test-support", not(target_os = "macos")))]
|
|
pub use test::*;
|
|
|
|
pub type Sid = String;
|
|
|
|
#[derive(Clone, Eq, PartialEq)]
|
|
pub enum ConnectionState {
|
|
Disconnected,
|
|
Connected { url: String, token: String },
|
|
}
|
|
|
|
#[derive(Clone)]
|
|
pub enum RoomUpdate {
|
|
ActiveSpeakersChanged { speakers: Vec<Sid> },
|
|
RemoteAudioTrackMuteChanged { track_id: Sid, muted: bool },
|
|
SubscribedToRemoteVideoTrack(Arc<RemoteVideoTrack>),
|
|
SubscribedToRemoteAudioTrack(Arc<RemoteAudioTrack>, Arc<RemoteTrackPublication>),
|
|
UnsubscribedFromRemoteVideoTrack { publisher_id: Sid, track_id: Sid },
|
|
UnsubscribedFromRemoteAudioTrack { publisher_id: Sid, track_id: Sid },
|
|
LocalAudioTrackPublished { publication: LocalTrackPublication },
|
|
LocalAudioTrackUnpublished { publication: LocalTrackPublication },
|
|
LocalVideoTrackPublished { publication: LocalTrackPublication },
|
|
LocalVideoTrackUnpublished { publication: LocalTrackPublication },
|
|
}
|