setFocusPoint static method
Implementation
static Future<void> setFocusPoint(
MediaStreamTrack videoTrack, Point<double>? point) async {
if (WebRTC.platformIsAndroid || WebRTC.platformIsIOS) {
await WebRTC.invokeMethod(
'mediaStreamTrackSetFocusPoint',
<String, dynamic>{
'trackId': videoTrack.id,
'focusPoint': {
'reset': point == null,
'x': point?.x,
'y': point?.y,
},
},
);
} else {
throw Exception('setFocusPoint only support for mobile devices!');
}
}