/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/media/streams/device_monitor.rs
21 строка
551 B
Martin Robinson
deps: Merge the servo/media repository (#42369)
06 фев 2026, 20:00
Не верифицирован
06 фев 2026, 20:00
eeb31a3
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #[derive(Clone, Copy, Debug)] pub enum MediaDeviceKind { AudioInput, AudioOutput, VideoInput, } #[derive(Clone, Debug)] pub struct MediaDeviceInfo { pub device_id: String, pub kind: MediaDeviceKind, pub label: String, } pub trait MediaDeviceMonitor { fn enumerate_devices(&self) -> Option<Vec<MediaDeviceInfo>>; }