setNext method
void
setNext(})
Set the next media to play when current media playback is finished. https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#void-setnextmediaconst-char-url-int64_t-startposition--0-seekflag-flags--seekflagfromstart
Implementation
void setNext(String uri,
{int from = 0,
SeekFlag seekFlag = const SeekFlag(SeekFlag.defaultFlags)}) {
final cs = uri.toNativeUtf8();
_player.ref.setNextMedia.asFunction<
void Function(Pointer<mdkPlayer>, Pointer<Char>, int, int)>()(
_player.ref.object, cs.cast(), from, seekFlag.rawValue);
malloc.free(cs);
}