|
@@ -40,7 +40,7 @@ class AsyncShellVidDataReader extends AsyncVidDataReaderBase {
|
|
|
setError(true, 'Get image count is 0.');
|
|
|
return;
|
|
|
}
|
|
|
- await fetchFrames(0, 1, isNeedReload: true);
|
|
|
+ await fetchFrames(0, 1, isNeedReload: false);
|
|
|
if (imageCount == null) {
|
|
|
setError(true, 'Get image count fail.');
|
|
|
return;
|
|
@@ -189,18 +189,18 @@ class AsyncShellVidDataReader extends AsyncVidDataReaderBase {
|
|
|
appendFrame(frame, index);
|
|
|
print("appendFrame ${frame.length} index: $index");
|
|
|
|
|
|
- if (frame.isNotEmpty) {
|
|
|
- if (!_isBreak) {
|
|
|
- if (_isStop) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- updateProgress(index / _imageCount);
|
|
|
- }
|
|
|
- } else {
|
|
|
-
|
|
|
- print('updateProgress isBreak true');
|
|
|
- _isBreak = true;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ updateProgress(index / _imageCount);
|
|
|
index++;
|
|
|
}
|
|
|
|