Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config so i can point the musicCatalog to pull off my Google Drive shared folder #5

Closed
gedw99 opened this issue Sep 1, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@gedw99
Copy link

gedw99 commented Sep 1, 2020

Describe the bug
A clear and concise description of what the bug is.

I cant see where i can implement a config to use my google drive shared folder.
I checked the audio plugin and it supports playing from an URL.

But from what i can see in the data model (https://github.com/rohansohonee/ufmp/blob/main/lib/data/musicCatalog.dart) , it wants to get a JSON list of audio files and the meta data about them.
I can easily write a script to loop my google drive files to produce a big JSON file that holds all the Music meta data.

Looking for advice on how to give it a URL to load up the musicCatalog from a certain URL.
I can see you have the URL hardcoded here: https://storage.googleapis.com/uamp/catalog.json

So i think if this can be a config then i can point it to my GDrive.
Maybe also surface it in a Setting Preference too ?

@gedw99 gedw99 added the bug Something isn't working label Sep 1, 2020
@gedw99 gedw99 changed the title playing off Google Drive shared folder Config so i can point the musicCatalog to pull off my Google Drive shared folder Sep 1, 2020
@rohansohonee
Copy link
Owner

@gedw99
The musicCatalog is created based on the uamp json data. This sample does not cover on how you retrieve your data but only demonstrates on background audio playback using the audio plugins mentioned in the credits section.
I am closing this issue as it is not related to the samples intentions.

@gedw99
Copy link
Author

gedw99 commented Sep 2, 2020

Thanks

I got it working of my google drive, by writing a script to transform my music meta data to match your Schema

I also swapped out the Cache plugin to use the HIVE Cache that does not use SQLite, and is much faster and it woks on Web, Desktop and Mobile.
https://pub.dev/packages/flutter_cache_manager_hive

The Audio Player only works on Mobile. Can get it working on Web later, but no time right now.

I will work and add these if you want. Let me know if you want a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants