08-10-2012 01:35 AM
Hi Folks,
I am working with Blackbery 10 Webworks and I would like to add a feature of scanning music files from device and get their information like artist name, album, etc.
Can this be achieved using HTML5 File API? If yes how can that be done, a small working example would be helpful.
Regards
08-10-2012 01:58 AM
Nice questions, I was also looking forward to such things, but couldn't find anything and also tried all the things below without something like the ID3 informations of a mp3 file or things like that. For now I think the following only can be made:
With the help of the HTML5 LocalFileSystem API you can walk through all the accessable folders on the device and maybe you want to create an index of the files by that. What can be done with a HTML5 File API itself it you can get a file.type as of "audio/mp3", "audio/mp4", ... or something like this. The next thing would be the HTML5 Metadata API for files I would think of, but right now it seems you only get the modificationTime and for my tests it is the same information like in the file.lastModifiedDate attribute. It seems we need another feature request filed to the BB10 WebWorks Framework github repo?!!