SongPickerANE icon indicating copy to clipboard operation
SongPickerANE copied to clipboard

how to get path/url of selected file?

Open mourada opened this issue 10 years ago • 5 comments

I need path file of sound file for copy. is it possible? thanks you

mourada avatar May 11 '14 16:05 mourada

Hi Getting the path is not possible currently, but perhaps I can add this soon. Do you need iOS, Android or both?

-rich

richpixel avatar May 12 '14 15:05 richpixel

Hello

i am working in a multi platform application, i prefere both but i will be very happy if only forAndroid for this application: https://play.google.com/store/apps/details?id=air.com.benandroid.airMp3&hl=fr

thanks very very much!

Mourada

mourada avatar May 13 '14 06:05 mourada

Ok, this is easy on iOS, but I'm not that familiar with Android... are you looking for the EXTERNAL_CONTENT_URI, or the INTERNAL_CONTENT_URI? http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html

richpixel avatar May 13 '14 15:05 richpixel

Or - the SongPickerEvent.ID already contains a uri on Android. Is that what you need?

richpixel avatar May 13 '14 15:05 richpixel

thanks for yours answers.

your id is like content://media/external/....299 for example

i want like file:......mySound.mp3

i want make

var destination:File=File.desktopDirectory.resolvePath("newSound"); soundPicked.copyTo(destination). for this, i need soundPicked url:path

...then zip the file with others files

thanks again

Mourada

2014-05-13 17:49 GMT+02:00 richpixel [email protected]:

Or - the SongPickerEvent.ID already contains a uri on Android. Is that what you need?

— Reply to this email directly or view it on GitHubhttps://github.com/richpixel/SongPickerANE/issues/7#issuecomment-42973416 .

mourada avatar May 13 '14 21:05 mourada