close method
dynamic
close()
Implementation
close() async {
await pause();
if (_ctx == null || _ctx!.value.address == 0) return;
if (_ioCtx != null && _ioCtx!.address != 0) av_free(_ioCtx!);
_streams!.forEach((s) => s._close());
avformat_close_input(_ctx!);
malloc.free(_ctx!);
_ctx = null;
__onFrame?.destroy();
__onFrame = null;
await _req?.close();
_protocolRequests.remove(identityHashCode(_req));
_req = null;
}