setDecoders method

void setDecoders(
  1. MediaType type,
  2. List<String> value
)

Implementation

void setDecoders(MediaType type, List<String> value) {
  switch (type) {
    case MediaType.audio:
      _adec = value;
    case MediaType.video:
      _vdec = value;
    default:
  }

  final u8p = value.toCZ();
  _player.ref.setDecoders.asFunction<
          void Function(Pointer<mdkPlayer>, int, Pointer<Pointer<Char>>)>()(
      _player.ref.object, type.rawValue, u8p.cast());
  u8p.free();
}