Phonegap: Access existing playlists from Android mediastore? - android

Does anybody know how I would access the android MediaStore.Audio.Playlists area from within phonegap? Is this at all posible? I am looking to add a simple media player to my existing app.
I have searched the phonegap media documentation - and have a media player playing audio files within the phonegap asset area, but I cant find a way to retreive existing playlists from the device.
Cheers

Related

Android code : How to use YOUTUBE OFFLINE functionality for .mp3 files?

I am developing an android application for Online Music streaming. I want to download MP3 files from the server and play that file when the user is offline. And the downloaded file can only be played through applicaion
please give your best solution

How do i play .asx files in my android application using titanium appcelerator?

I have a URL which downloads an .asx type file when clicked . The file downloaded , streams a live radio and plays it in an audio player . How do i handle this in my android application using titanium appcelerator ?
Thanks
You don't use asx files, since audio player is a functionallity of Android. You need to use Titanium.Media.AudioPlayer
Docs here: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media.AudioPlayer

Phonegap Android App - Display Store MP3 Media

I've been following this blog to help me make a simple music player function with an Android app (http://simonmacdonald.blogspot.com/2011/05/using-media-class-in-phonegap.html).
All works well - but I would like some way to extract a list of all music media stored on the phone so the user can click a file and play it. Does anyone know if this is possible via phone gap? I'd need to access track name/artist etc and a link to the track.
Cheers
Paul
Prognosis is not good.... PhoneGap does not have an API for accessing the media library. So, you would have to fall back to the File API to locate music files, and then... you would have to read the binary data in the actual files to extract out the track/artist metadata. Ouch. Seems pretty impractical.
[EDIT]
By the way, PhoneGap is not the only game in town. Appcelerator seems to solve the same problem, and apparently has a richer API, which includes
access to media metadata

Android default music app - add songs from web instead of filesystem

I would like to leverage (reuse) the built in Android music app to play songs/artists/albums/playlist that their origin is from the web and not from SDcard/internal storage.
To be more accurate, I see that the content is retrieved from MediaStore.Audio.Media.EXTERNAL_CONTENT_URI.
Is there a way to add web audio to the media store?
Basically, why wouldn't it be possible? The mediaPlayer knows how to play remote audio.
Please advise...

Search for all video or audio files in Android

I made a project like video/audio player in android.
I want to search all video and audio files available on the device, how can I do this?
Use the content provider to query the media store, see the documentation at
https://developer.android.com/reference/android/provider/MediaStore.html
https://developer.android.com/guide/topics/providers/content-providers.html

Categories

Resources