getCodecsOfType static method

String? getCodecsOfType(
  1. String? codecs,
  2. int trackType
)

Implementation

static String? getCodecsOfType(String? codecs, int trackType) {
  final output = Util.splitCodecs(codecs)
      .where((codec) => trackType == MimeTypes.getTrackTypeOfCodec(codec))
      .join(',');
  return output.isEmpty ? null : output;
}