javascript - Generate list from file directory -
i'm trying create mock media player - extremely basic youtube, allows user select video list, , plays in embedded player.
so far i've got video player playing videos list, have manually edit list if changes, rather getting updated automatically - want.
the file structure have is:
dest/ index.html favicon.png video/ movie.mp4 rabbit.mp4
and want user able choose between movie.mp4
, rabbit.mp4
files (and rest added when it's being used - of don't know names of).
i've read it's not possible javascript access files - security reasons. makes sense me when dealing user's files, not same directory html in! when want read-only access. if in fact not possible - seems - let me know think fastest way this?
<input type="file" multiple/>
doesn't work me need use specific directory, not user selected one.
i using html , javascript, , due limitations on target machine, cannot use php. i'd rather avoid server stuff if @ possible. i've never used jquery or ajax, if it's necessary can give go (although don't know if they're available either).
thanks, adam
Comments
Post a Comment