How to list all mp3 files in a Folder in JavaScript -
i want add mp3 files list in javascript.
and set 1 song after
var foo=new sound("/users/alexw/music/test.mp3",100,true);
you can't access data files file system via javascript, it's security issue
https://en.wikipedia.org/wiki/javascript#security
edit: access files there's 2 solution:
using custom dll (for ex. made c# in internet explorer) can load via javascript list computer files
using local web service (for ex. made node.js) list files , stream them if want online
Comments
Post a Comment