You will find her my first extension i hope you will enjoy it.
I developed it in complement of TaifunPlayer extension i use to get Tags info of music file.
as you are talking about my player extension, what about looking at its documentation?
Set the audio source.
Prefix the filename with / (i.e. relative path) to look for the file on the SD card. For instance /mySound.mp3 will look for the file /mnt/sdcard/mySound.mp3. To read assets packaged with an application (also works for the Companion) start the filename with // (two slashes). If a filename starts with file:/// you can specify a complete path to the file. You also can assign an URL, just start the filename with http then.
@Taifun Ok, thanks for the hint. I never needed the documentation for your Player ext. or the Player component (as they are self-explanatory) and therefore I probably didn't pay attention to it.
The // is only mentioned in connection with the File component in the AI2 documentation.
There is nowhere such a hint for the mentioned Media components (player, sound, video player). In addition, I have never seen any aia using this path in all the years.
As I said the // is only needed for the File component and seems to me to make little sense in your extension, especially since these slashes are not needed at all.
I tried to follow the logic from the file component in all my extensions...
it might be, that these slashes are not needed at all in this case... this to provide some compatibility to the player component...
Ok. I will take your remarks about file acces into account and will post an update...
but i'd like to complete this extension with album cover art. I succed to do it in android studio, but it's a bitmap..AI compilator don't accept it when i try to compile it gave me an error.
so i 'd could save this bitmap in a file but i don't succed to do it in an acceptable way for AI compilator...
have you a way to do it ?
You will find her my first extension i hope you will enjoy it.
I developed it in complement of TaifunPlayer extension i use to get Tags info of music file.
Please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names.
example:
also you might want to use English method names...
btw. there is already the following Mp3 Metadata extensions available: Mp3 Metadata Extension by enaixpeend
about MP3 Metadata extension, that's why i would like include album art... don't you know a way to save byte[] in a file without AI compilation error ? (so without "FileOutputStream")
this thread is about presenting your extension, so if you have questions about developing the extension itself, then please continue asking in your other thread. Thank you.
Please remember the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, i.e. no underscores