Issue I am working on Android app where I have incoming video source in rtsp stream( h265/hevc ) source rtsp server have problem only allows one connection I want to play rtsp stream and also stream it to rtmp server
Continue readingTag: stream
Flutter Firestore query listeners overlapping when running in Firebase Emulators
Issue I have a Flutter widget that listens to 2 Firestore queries: class ExampleWidget extends StatefulWidget { const ExampleWidget({super.key}); @override State<ExampleWidget> createState() => _ExampleWidgetState(); } class _ExampleWidgetState extends State<ExampleWidget> { @override void initState() { FirebaseFirestore.instance .collection(‘items’) .where(‘tags’, arrayContains: ‘foo’) .snapshots()
Continue readingHow can you nest StreamBuilders in Flutter?
Issue I have 2 Streams that I need to combine to build a widget, but unlike other questions I have seen I need to nest my streams. I have a stream that gets a collection of documents from Firestore, and
Continue readinglisten for stream and print value in dart main function
Issue I want to print data.length after listening to this stream but the program executed synchronously. How can I listen to this data stream without using the await-for syntax void main() async { final file = File(‘assets/text_long.txt’); final stream =
Continue readingRecheck internet connection in flutter only when retry button is clicked
Issue Requirements: Display dialog if internet is unavailable throughout app Pop off the dialog only if retry is clicked and internet is available. Needs suggestion in: Pop off the dialog only if retry is clicked and internet is available. Approach:
Continue readingDoes StreamProvider dispose previous Stream instance and its subscription?
Issue Please look at the following pseudo code using Dart Riverpod. final dependingStreamProvider = StreamProvider.autoDispose<int>((ref) { final depending = ref.watch(dependingProvider); if (depending == typeA) { return AStream(); // returns stream of int } else { return BStream(); // returns a
Continue readingError: Bad state: Cannot add new events after calling close with just_audio and riverpod
Issue I’m currently working on a Flutter application using the just_audio and flutter_riverpod packages. In my project, I’ve encountered an issue where I get an error message saying "Error: Bad state: Cannot add new events after calling close" originating from
Continue readingrxdart – using combineLatest, the way combiner works
Issue How does the combiner actually work? Stream<bool> get isValid => Rx.combineLatest2(name1, mobile1, (name2, mobile2) => true); If name1 and mobile1 are streams, then what are the types of name2 and mobile2 in brackets? Solution In your example, name2 and
Continue readingIn which method, should call state management methods of the class in Flutter bloc with rxdart?
Issue Firstly, I want to ask is from which method of Stateful widget should I call state management methods. I need to choice two place init() method or build(). I don’t exactly know which method is the appropriate method to
Continue readingHow to collect items from one stream into the list and expose the result list via other stream in dart (rxdart)?
Issue I have a StreamController final _controller = StreamController<List<LoadedPage<int, Entity>>>.broadcast(); and stream which exposes data using similar code: void getPagingData() async { final response = _api.getData(…); final pages = _convertResponseToPadingData(response); // This is an example of exposed event: // <LoadedPage<int,
Continue reading