getSupportedVideoCodecs method

Future<List<RTCVideoCodec>> getSupportedVideoCodecs()

Get list of supported video codecs on current platform

Implementation

Future<List<RTCVideoCodec>> getSupportedVideoCodecs() async {
  final List<RTCVideoCodec> supportedCodecs = [];

  for (final codec in RTCVideoCodec.values) {
    if (await codec.isPlatformSupported()) {
      supportedCodecs.add(codec);
    }
  }

  return supportedCodecs;
}