media-device 0.9.1

A cross-platform wrapper for capture and playback devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(feature = "video")]
#[cfg(any(target_os = "windows", target_os = "macos", target_os = "ios"))]
pub mod camera;

mod device;

use cfg_if::cfg_if;
pub use device::*;

cfg_if! {
    if #[cfg(target_os = "windows")] {
        #[path = "windows/mod.rs"]
        pub mod backend;
    } else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
        #[path = "mac/mod.rs"]
        pub mod backend;
    }
}