isPlatformSupported method
Implementation
Future<bool> isPlatformSupported() async {
if (this == WebRTCCodec.av1) {
final double platformVersion = await NativeService().getPlatformVersion();
if (WebRTC.platformIsAndroid &&
platformVersion >= kMinAV1AndroidSupported ||
WebRTC.platformIsIOS && platformVersion >= kMinAV1iOSSupported) {
return true;
}
}
return true;
}