News for hackers. Stuff that matters.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by trotsky on Saturday March 26, 2011 @11:28PM (#2374061)
What does the security model for opening the files look like? If you specify a directory chooser the app can span the directory tree and open/parse all files readable to the user? Any idea if it will walk symbolic links? I'm a bit surprised there isn't more of a user warning from the browser.

Nice proof of concept though! Very impressive what can be done. Worked well in stable channel + openSUSE.

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by pat2man on Sunday March 27, 2011 @02:24AM (#2374355)
Operating systems seem to care a lot about write access , less about read access. As much as browsers should care about this an OS should do some sandboxing.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by jackolas on Sunday March 27, 2011 @12:13AM (#2374141)
I assume you can't read out data without the user clicking on a browser styled "choose" button.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by nl on Sunday March 27, 2011 @04:48AM (#2374561)
Exactly.

The permission is implicitly granted by the user when they select a file. (Obviously this is implementation specific, but I think all implementations behave this was)

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by nealb on Saturday March 26, 2011 @10:55PM (#2374002)
Worked well in Chrome 10 on Windows 7 for the first few minutes then crashed. Adding files was a little bit slow but the audio playback and tagging worked well. Nicely done though, it's very cool!
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by 51Cards on Saturday March 26, 2011 @11:55PM (#2374101)
I'm quite curious about the file reading code. With a simple directory browse from the user couldn't you start to walk the file tree and read whatever you liked? Nothing I see to stop something like this then firing off Ajax calls to send up everything it finds. I think some digging through the code is in order.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by trotsky on Sunday March 27, 2011 @01:10AM (#2374236)
It seems quite clear that you could package up all files and send them to the server. I've read through the code in this example though and I don't see anything that could be doing that here. Since all of the code is being served off of github I think it'd be pretty hard to switch in some malicious code at times, but I would be pretty wary of granting access to a webkitdirectory chooser type from a less transparent site.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by jwingy on Saturday March 26, 2011 @10:37PM (#2373966)
Doesn't look like it supports unicode - no Chinese on my Chinese mp3s!
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by grigory on Sunday March 27, 2011 @03:32AM (#2374469)
This is so awesome.

Having tried numerous audio players for OSX I just can't find something that I'm satisfied with. I guess I'll just start building my own now :)

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by est on Sunday March 27, 2011 @01:41AM (#2374274)
the core:

    <input type="file" webkitdirectory directory multiple mozdirectory onchange="getSongs(this.files)">
There is a security issue on windows, try type `shell:cache` in the directory browsing dialog.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by sp332 on Sunday March 27, 2011 @11:54AM (#2375203)
Does it matter if I can read my own directory listing?
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by pornel on Sunday March 27, 2011 @02:37PM (#2375598)
Author of the app can read your directory listing (and whether that matters depends on what you have in this directory and whether you trust application's author)
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by MatthewRayfield on Sunday March 27, 2011 @12:33AM (#2374178)
This is pretty awesome. I was unaware of Chrome's directory opening abilities. That's a game changer for this kind of app.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by aj700 on Sunday March 27, 2011 @02:34PM (#2375592)
Not talking about this specifically, but the model:

If an app only deals with local data, does it need to be a web app?, except that thereby it becomes zero-install, zero-update, global and cross-platform.

Could or is ChromeOS going to play local mp3s before? It's not much of an OS if it can only play mp3s on a server somewhere, with a browser plugin. Will Spotify and other streaming clients work on it? Is it cloud data only?

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by Ruudjah on Sunday March 27, 2011 @12:29PM (#2375292)
Chrome 10: Succes (although I can only select a folder)

Firefox 3.6: fail

Chromium 10: loads, fails to play

Opera: loads site with errors, clicking button doesn't do anything

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by Sephr on Sunday March 27, 2011 @01:36PM (#2375471)
> Chromium 10: loads, fails to play

Make sure to use OGG Vorbis audio in Chromium. I'm guessing you tried to play MP3.

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by sp332 on Sunday March 27, 2011 @12:03PM (#2375228)
Well, it doesn't read ID3 tags, but if you just drag your music folder into Firefox, you can browse around and play MP3, Vorbis etc. files. It also works with videos.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by antimatter15 on Sunday March 27, 2011 @12:22PM (#2375275)
Yeah, it does.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by HaloZero on Saturday March 26, 2011 @10:38PM (#2373969)
It won't let me open any mp3 files in my iTunes collection... Using Chrome Dev Channel + Mac OSX. Does Chrome not support this?
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by phwd on Saturday March 26, 2011 @11:03PM (#2374021)
I am not on dev (using Chrome 10.0.648.204).

Try User > Music > and select the iTunes Folder

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by pstinnett on Saturday March 26, 2011 @11:13PM (#2374038)
Took a while to start loading but it eventually loaded my songs.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by darkletterL on Saturday March 26, 2011 @11:47PM (#2374090)
Works perfectly fine on Chrome Dev + Win 7. Wish there was a way to organize songs and make playlists though.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by beilabs on Sunday March 27, 2011 @04:12AM (#2374512)
Surely this is possible, just use the offline DB and some funky Javascript.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by kalmi10 on Sunday March 27, 2011 @08:06AM (#2374787)
I don't think that the security model would let you do this.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by shii on Sunday March 27, 2011 @12:26AM (#2374170)
No success on my Cr-48 running latest ChromeOS.

Nice work though, antimatter15, keep it up!

Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by Vivtek on Saturday March 26, 2011 @11:29PM (#2374065)
That is just too cool.
Re:HTML5 MP3 Player - Plays local files and parses ID3 tags by BrainScraps on Sunday March 27, 2011 @12:08AM (#2374127)
Brilliant!