setNext method

void setNext(
  1. String uri, {
  2. int from = 0,
  3. SeekFlag seekFlag = const SeekFlag(SeekFlag.defaultFlags),
})

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);
}