#[cfg(target_os = "macos")]
mod mac;
#[cfg(target_os = "windows")]
mod win;
#[cfg(target_os = "macos")]
pub use mac::update;
#[cfg(target_os = "windows")]
pub use win::update;
pub const LOADS_ARTWORK_URLS: bool = cfg!(target_os = "windows");
fn event(action: &str, seek_time: Option<f64>) {
let mut m = serde_json::Map::new();
m.insert("kind".into(), "mediasession".into());
m.insert("action".into(), action.into());
if let Some(t) = seek_time {
m.insert("seekTime".into(), t.into());
}
crate::emit(serde_json::Value::Object(m).to_string());
}