deviceId property

String? deviceId
final

The deviceId of the capture device to use. Available deviceIds can be obtained through flutter_webrtc:

import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc;

List devices = await rtc.navigator.mediaDevices.enumerateDevices();
// or
List desktopSources = await rtc.desktopCapturer.getSources(types: [rtc.SourceType.Screen, rtc.SourceType.Window]);

Implementation

final String? deviceId;