Issue class _HomeState extends State<Home> { @override void initState() { super.initState(); checkPermission(); } final audioQuery = OnAudioQuery(); FutureBuilder<List<SongModel>>( future: audioQuery.querySongs( sortType: null, orderType: OrderType.ASC_OR_SMALLER, uriType: UriType.EXTERNAL, ignoreCase: true, ), Future<void> checkPermission() async { if (!kIsWeb) { bool permissionRequest = await
Continue readingTag: flutter-audio-query
Flutter – Audio is playing only once when I go to PianoMain page
Issue I am making a piano app as a beginner for demo. I have made the whole page for Piano including UI and audio functionality. But, the problem is that when I open PianoMain so, it plays any one of
Continue readingflutter audio_service, how to set an interval between two audios
Issue I make a looping function and support running in background, so I choose audio_service and just_audio. But I want to control the interval between two audios playing. I hope the first one has finished playing, set 1 second and
Continue readingFlutter: PlatformException (PlatformException(, cannot find the file, null, null)) on FlutterAudioRecorder2
Issue class AudioRecorder { static DateTime now = DateTime.now(); static String timestamp = now.toString(); var recorder = FlutterAudioRecorder2("./file_path", audioFormat: AudioFormat.AAC); // or var recorder = FlutterAudioRecorder2("file_path.mp3"); startRecording() async { await recorder.initialized; await recorder.start(); // <- error here } stopRecording() async
Continue readingHow to change the current mediaItem when the next mediaItem in the queue is played
Issue I’m developing an iOS app in Flutter, using a package called audio_service. I use AudioServiceBackground.serQueue() to set multiple MediaItem to a Queue. In the UI part, I’m trying to use AudioService.currentMediaItemStream to display the information of the currently playing
Continue readingGetting Album Artwork in flutter
Issue I am trying to create a music app. I managed to get all the songs list but I cannot seem to get album artwork from the song metadata. I am using flutter_audio_query: ^0.3.5+6 plugin for this. I cannot get
Continue readingnot getting song files in my app after using flutter audioQuery
Issue I’ve tried every thing to get songfiles on my app but it still shows nothing, here is my code below: import ‘package:flutter/cupertino.dart’; import ‘package:flutter/material.dart’; import ‘package:flutter_audio_query/flutter_audio_query.dart’; class slist extends StatefulWidget { @override _slistState createState() => _slistState(); } class _slistState
Continue reading