File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ abstract class MediaDevices {
120
120
/// change included in the event object; to get the updated list of devices,
121
121
/// you'll have to use enumerateDevices().
122
122
Function (dynamic event)? ondevicechange;
123
+
124
+ /// Prompts the user to select a specific audio output device.
125
+ Future <MediaDeviceInfo > selectAudioOutput ([AudioOutputOptions ? options]);
123
126
}
124
127
125
128
/// This describe the media input and output devices, such as microphones,
@@ -152,3 +155,13 @@ class MediaDeviceInfo {
152
155
/// (for example "External USB Webcam").
153
156
final String label;
154
157
}
158
+
159
+ /// An object that configures what device(s) may be offered in the user prompt.
160
+ class AudioOutputOptions {
161
+ AudioOutputOptions ({
162
+ this .deviceId = "" ,
163
+ });
164
+
165
+ /// A string representing the id of the (only) device to display in the prompt (with default value: "").
166
+ final String deviceId;
167
+ }
You can’t perform that action at this time.
0 commit comments