getCapabilities method

CodecCapability? getCapabilities(
  1. String kind
)

Implementation

CodecCapability? getCapabilities(String kind) {
  final mline = _mline(kind);
  if (mline == null) {
    return null;
  }
  final rtcpFb = mline['rtcpFb'] ?? <dynamic>[];
  final fmtp = mline['fmtp'] ?? <dynamic>[];
  final payloads = (mline['payloads'] as String).split(' ');
  final codecs = mline['rtp'] ?? <dynamic>[];
  return CodecCapability(kind, payloads, codecs, fmtp, rtcpFb);
}