Forum Discussion

CookipediaChef's avatar
12 years ago

Speed up loading >16,000 media files from usb drvusing index

Hi

Looking to write an audio mp3 player with build in randomised slideshow running from an external usb drive. My first experiment with > 8k mp3 file takes upwards of 3 minutes for the app to locate out all the files before anything can happen. This strikes me as fairly unusable so I'm thinking of using an xml index that the system could use almost immediately, which could be re-indexed manually. Are there any examples / libraries showing how this can be best achieved, to save me re-inventing the wheel?

Thanks, Jerry

3 Replies

  • destruk's avatar
    destruk
    Streaming Star
    Probably the easiest would be to build a text file (text is faster to work with than an XML parser)
    If you have all your media files in the same folder, something as simple as --
    dir/b e: >list.txt

    Then your app could load the list.txt file from the usb on the roku, tokenize the contents, and generate your listing.