Comments (5)
i think that because this is using Singleton, and after unsubscribe Stream, you cannot reinitialize the stream, the solution is you can reset compressProgress$ with this code in initState
VideoCompress.compressProgress$ = ObservableBuilder();
from videocompress.
i have the same too although i have unsubscribed in dispose method
from videocompress.
Or you can wrap VideoCompress.compressProgress$ with StreamController that supports multiple subscriptions:
static StreamController<double> _progressStreamController = StreamController<double>();
static Stream<double> progressStream = _progressStreamController.stream.asBroadcastStream();
.
.
.
VideoCompress.compressProgress$.subscribe((value) {
_progressStreamController.sink.add(value / 100);
});
and register the stream in your widget:
@override
void initState() {
super.initState();
if (widget.progressStream != null) {
_progressSusbscription = widget.progressStream.listen((p) {
setState(() {
_progress = p;
});
});
}
}
from videocompress.
Fix um last version
from videocompress.
Video compress: 3.1.0
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-arm, locale
en-NP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.67.2)
I am still facing the issue where multiple video cannot be compressed. any possible solutions?
from videocompress.
Related Issues (20)
- java.lang.IllegalArgumentException: could not access /data/user/0/com.example.test_compress/app_flutter/Trimmer/VID_20230725_163032_446_trimmed:Aug4,2023-17:32:10.mp4 HOT 1
- Could not find com.otaliastudios:transcoder:0.9.1 HOT 13
- Work with isolate
- Missing link to repo in pub.dev
- Add support for dart native HOT 1
- compression cancel
- Please add more compression options
- Support for Windows/Linux
- Plans for Implementing Privacy Manifest Support?
- Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). HOT 7
- Fatal error while transcoding, this might be invalid format or bug in engine or Android. VideoCompress HOT 1
- MissingPluginException(No implementation found for method setLogLevel on channel video_compress) HOT 4
- Compression progress never getting to 100 on iOS HOT 2
- Android issue
- Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. HOT 4
- FAILURE: Build failed with an exception. HOT 1
- New Release? HOT 5
- VideoQuality.Res1920x1080Quality seems not work properly.
- Remove references to deprecated v1 Android embedding
- Failed to ensure /storage/0820-0C0C/Android/data/com.xxx.xxx/files/video_compress: android.os.ServiceSpecificException: (code -22)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videocompress.