toMediaConstraintsMap method
override
Implementation
@override
Map<String, dynamic> toMediaConstraintsMap() {
var constraints = super.toMediaConstraintsMap();
if (useiOSBroadcastExtension && lkPlatformIs(PlatformType.iOS)) {
constraints['deviceId'] = 'broadcast';
}
if (lkPlatformIsDesktop()) {
if (deviceId != null) {
constraints['deviceId'] = {'exact': deviceId};
}
if (maxFrameRate != 0.0) {
constraints['mandatory'] = {'frameRate': maxFrameRate};
}
}
return constraints;
}