setDecoders method
Set decoder priority. Detail: https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#void-setdecodersmediatype-type-const-stdvectorstdstring-names
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();
}