mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 13:23:41 +00:00
feat: spool media inputs to disk and report producer progress
This commit is contained in:
1 parent
e99ef6c7f4
commit
e0ced260e2
36 files changed
+1747
-366
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
||||
import '../../util/util.dart';
|
||||
import '../common/libgopeed_channel.dart';
|
||||
import '../common/libgopeed_ffi.dart';
|
||||
@@ -26,6 +28,9 @@ class LibgopeedBootNative implements LibgopeedBoot {
|
||||
Future<int> start(StartConfig cfg) async {
|
||||
cfg.storage = 'bolt';
|
||||
cfg.storageDir = Util.getStorageDir();
|
||||
if (Util.isMobile()) {
|
||||
cfg.tempDir = (await getTemporaryDirectory()).path;
|
||||
}
|
||||
cfg.refreshInterval = 0;
|
||||
return _libgopeed.start(cfg);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user