Reading local files in JavaScript (HTML5)
11–20 of 26 posts
Re: Reading local files in JavaScript (HTML5)
#12Does anyone know of a browser plugin or anything that allows you to write files, too?
well you can always use file system api. http://www.html5rocks.com/en/tutorials/file/filesystem/ but its chrome only
Re: Reading local files in JavaScript (HTML5)
#13The new file reading stuff in HTML5 is fantastic- I've written a little JS widget for my site that takes a local video file, reads the first 100KB of it, then sends that off to a remote video processor by cross-domain AJAX to get a thumbnail, which is then loaded onto the user's page. It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is to…
Re: Reading local files in JavaScript (HTML5)
#14The new file reading stuff in HTML5 is fantastic- I've written a little JS widget for my site that takes a local video file, reads the first 100KB of it, then sends that off to a remote video processor by cross-domain AJAX to get a thumbnail, which is then loaded onto the user's page. It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is to…
Re: Reading local files in JavaScript (HTML5)
#15The new file reading stuff in HTML5 is fantastic- I've written a little JS widget for my site that takes a local video file, reads the first 100KB of it, then sends that off to a remote video processor by cross-domain AJAX to get a thumbnail, which is then loaded onto the user's page. It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is to…
When you say cross-domain AJAX, do you mean JSONP or proxying, or is there another technique I'm not aware of?
Re: Reading local files in JavaScript (HTML5)
#16The new file reading stuff in HTML5 is fantastic- I've written a little JS widget for my site that takes a local video file, reads the first 100KB of it, then sends that off to a remote video processor by cross-domain AJAX to get a thumbnail, which is then loaded onto the user's page. It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is to…
you could use broadway, which is a h.264 player written in js onto canvas to get your frame and then just send that. see: http://badassjs.com/post/12035631618/broadway-an-h-264-decod... http://mbebenita.github.com/Broadway/broadway.html
Re: Reading local files in JavaScript (HTML5)
#17Earlier quoted context omitted.
you could use broadway, which is a h.264 player written in js onto canvas to get your frame and then just send that. see: http://badassjs.com/post/12035631618/broadway-an-h-264-decod... http://mbebenita.github.com/Broadway/broadway.html
That is an extremely cool project. Unfortunately, we don't know what format users are uploading, so we have to pass it off to an ffmpeg-powered service.
you can do the same thing with 2 ajax requests too. one doing the upload and the other that opens a connection at the same time and waits for a success response. onreadystate 3 of the second request, abort() the upload request.
Re: Reading local files in JavaScript (HTML5)
#18Re: Reading local files in JavaScript (HTML5)
#19Does anyone know of a browser plugin or anything that allows you to write files, too?
well you can always use file system api. http://www.html5rocks.com/en/tutorials/file/filesystem/ but its chrome only
Re: Reading local files in JavaScript (HTML5)
#20The spec changes quiet often and if you do the javascript file stuff alot (my startup deals with local files with javascript so i use js for files alot) you will come across something that has been changed from what it is on html5rocks. It gets ugly very quickly. When i started it, the condition was alot worse, there was practically no one writing any tutorials. Your only option was to reverse engineer the spec draft…