How to detect audio folders in flutter like MX Player does? - flutter

Recently I started working on an Audio Player flutter project. And as a flutter beginner, I had to search for things needed to fulfill the project. I wanted a media folder detection mechanism like the MX Player app does.
But after searching the whole day on the web for it, I didn't find anything useful.
Please suggest to me how to achieve this functionality or are there any packages available for that?

You can do a file scan and filter files found by their extensions (mp3,aac...) to get your audio files.

You should use ContentResolver query like
`Cursor c = context.getContentResolver().query(uri, projection, MediaStore.Audio.Media.DATA + " like ? ", new String[]{"%utm%"}, null)`
Example is shown here

Related

Save images for my web server in SPIFFS on esp32-S2

Hi it's my first time using esp32-S2 because now its not recommended to use esp32. I'm looking for saving images in SPIFFS for my web server. In esp32 i used to use esp32fs plugin (https://github.com/me-no-dev/arduino-esp32fs-plugin) but it doesn't work for esp32-S2. I would like to know if there is any plugin like esp32fs and if not how can i save my images (I'm using arduinoIDE 1.8.19). I've been searching but i didn't found anything. Any orientation is welcomed. Thank you for your time and assistance.
You can try my ESP32_FSWebServer_DRD or ESP_FSWebServer example of ESP_WiFiManager library
Follow the instructions in ESP_FSWebServer Example
You can use either deprecated SPIFFS or the better LittleFS

How to make a barcode scanner(1D barcodes) app in flutter that uses Laser Scanner of different PDA devices spanning multiple manufacturers?

I am creating a mobile application for scanning bar codes. I will be installing this on many of my Organization's PDAs. The PDAs we have include the brands Honeywell, smartpeak, ZKC. I am using flutter to create this app. So far I have tried the following packages from flutter:
pda_scanner: ^0.2.9 (https://pub.dev/packages/pda_scanner)
The documentation for pda-scanner is a bit unclear to me. I tried to use the example code and that
doesnt works for any of the scanner
zkc_scanner: ^1.0.1+3 (https://pub.dev/packages/zkc_scanner)
The zkc_scanner works fine for the ZKC scanner but doesnt works with other brands
honeywell_scanner: ^2.0.0+4 (https://pub.dev/packages/honeywell_scanner)
adding honeywell_scanner dependency to pubspec.yaml caused compilation failure
Is there any other package that could help me achieve what I want or any way that I could create my own vendor neutral package that can help with this?
Finally found the answer and it was easier than I expected. You really need to use/build any package, just think of the Scanner as an input like another keyboard. Tap on a TextField to focus then use the SCAN key and scan the bar-code. The scanned bar-code will automatically be sent to the highlighted TextField

Wwise, Resonance Audio and Unity Integration. Configure Wwise Resonance Audio Plugin

I have tried to get a response on Github but with no activity about this issue there I will ask here.
I have been following the documentation and I am stuck when I have imported the WwiseResonanceAudioRoom mixer effect on the bus in Wwise and I do not see anything in the properties. I am not sure if I am supposed to? Right after that part of the documentation is says "Note: If room properties are not configured, the room effects bus outputs silence." I was wondering if this was the case and yes it outputs silence. I even switched the effect to see if it will just pass audio and it does just not with the Room effect, so at least I know my routing is correct.
So now this leads up to my actual question. How do you configure the plugin?? I know there is some documentation but there is not one tutorial or a step by step for us non code savvy audio folk. I have spent the better half of my week trying to figure this out b/c frankly for the time being this is the only audio spatialization plugin that features both audio occlusion, obstruction and propagation within Wwise.
Any help is appreciated,
Thank you.
I had Room Effects with Resonance Audio working in another project last year, under its former name, GVR. There are no properties on the Room Effect itself. These effect settings and properties reside in the Unity Resonance prefabs.
I presume you've follow the latter tutorial on Room Effect here:
https://developers.google.com/resonance-audio/develop/wwise/getting-started
Then what you need to do is to add the Room Effect assets into your Unity project. The assets are found in the Resonance Audio zip package, next to the authoring and SDK files. Unzip the Unity stuff into your project, add a room Effect in your scene and you should be able to see the properties in the inspector of the room object?
Figured it out thanks to Egil Sandfeld Here ! https://github.com/resonance-audio/resonance-audio-wwise-sdk/issues/2#issuecomment-367225550
To elaborate I had the SDKs implemented but I went ahead and replaced them anyways and it worked!

How can I do Junit tests for Google Maps in Android?

I am using the Google Maps API in an Android project and now I need to test it using JUnit if possible. (I am somewhat new to both JUnit and Google Maps.) I have been scouring the internet but was unable to find anything.
The map view has dots/pins for stations and when I tap one I get a balloon popup with the name and other info. Then when I tap the balloon I get a new view with information about the location and actions to perform such as navigate.
What I want to know is, is it possible to write a JUnit test case that finds all these dots/pins, taps them, and verifies information on the new view that pops up? Additionally, I would like to change/mock the location that the GPS has and see what happens if I try to, say navigate overseas or something like that.
I do have a list view of the same locations which I will test as well, but I would like to know if there is a way to test the map view.
I would prefer an automated test script like what JUnit provides. If this is not possible with JUnit what is the best alternative?
I am working with Android 4.0 and using Eclipse.
Any help would be greatly appreciated.
In case anyone wants to know after much searching I finally found something that can test Google Maps. Things such as zoom level and I believe tap pin (method is called tapMapMarkerItem()) are supported. I have not tested the pin tap yet tho.
Apparently the awesome Robotium does not support map testing by itself. Nicholas Albion was nice enough to create an extension to provides testing support for maps on Android. Thank you so much Nicholas!
So here it is:
1. Download the Robotium jars from robotium.org (I found this helpful http://www.vogella.com/articles/AndroidTesting/article.html - by Lars Vogel)
2. Download the extension from https://github.com/nalbion/robotium-maps

Iphone - Writing a media player with lyrics

I want to write a simple media player which displays lyrics that are retrieved from the web.
I know once LyricWiki was such a source, but now no longer exists.
Does a new API or source for lyrics exist that I can use ?
When I do get the lyrics, how do I sync them with song ?
I know the MPMediaItem class has the MPMediaItemPropertyLyrics but this is cleary not enough for me cause this is only for songs from Itunes and not all of them have lyrics available.
I would appreciate any help or links that can I use to sort this issue.
A little Googling and I found a few options that might solve your problem:
First, LyricWiki does still exist. It's moved to lyrics.wikia.com. It seems that their API, however crops the lyrics, due to licensing.
LyricsFly
ChartLyrics. Looks the most promising to me, though I haven't actually tried any of the services myself (yet).
I'd like to hear which works for you the best, should any of them.
https://developer.musixmatch.com
it's an Official and Authorized lyrics api
The synced lyrics api are expensive. following do the job but dont know how expensive they are.
http://www.lyricfind.com
http://developer.echonest.com/sandbox/lyricfind.html