Stops playing or publishing and makes available other uses.
@override Future<void> close() async { assert(_memory != null); RtmpStreamPlatform.instance.close({"memory": _memory}); }