Struct web_audio_api::MediaDeviceInfo
source · pub struct MediaDeviceInfo { /* private fields */ }
Expand description
Describes a single media input or output device
Call enumerate_devices
to obtain a list of devices for your hardware.
Implementations§
source§impl MediaDeviceInfo
impl MediaDeviceInfo
sourcepub fn device_id(&self) -> &str
pub fn device_id(&self) -> &str
Identifier for the represented device
The current implementation is not stable across sessions so you should not persist this value
sourcepub fn group_id(&self) -> Option<&str>
pub fn group_id(&self) -> Option<&str>
Two devices have the same group identifier if they belong to the same physical device
sourcepub fn kind(&self) -> MediaDeviceInfoKind
pub fn kind(&self) -> MediaDeviceInfoKind
Enumerated value that is either “videoinput”, “audioinput” or “audiooutput”.