I'm building an Ubuntu app in HTML5, using the Ubuntu SDK. From what I can tell, I should be using
contentHub to access music files in
/home/Music/, however I can't make heads or tails of the API. (https://developer.ubuntu.com/api/apps/html5/sdk-15.04/ContentHub.ContentHub/)
How exactly would I go about importing the files, and how would I interact with them after I did so, if I, say, wanted to display a list of all of them?
I assume I'd import it using
api.importContent( type, peer, transferOptions, onError, onSuccess ) , but I have no idea what an acceptable value for
peer would be.