0

So I'm building a web application, and in part of the application the user should choose an XviD (.avi) video file from his machine, to be played in the browser (without uploading it). I decided to use Flash for this.

Now I have two questions about this:

  • Which Flash video player is free to use and capable of doing this?
  • How should I let the user choose a video file, and how can I link the Flash video player to the file?
Cokegod
  • 8,256
  • 10
  • 29
  • 47

1 Answers1

0

I think you can't. The Flash plugin don't have enough privileges to access the user's local file system.

bfavaretto
  • 71,580
  • 16
  • 111
  • 150
  • How about using the JavaScript window.URL.createObjectURL()? (https://developer.mozilla.org/en/DOM/window.URL.createObjectURL) I know this makes it possible to do the same thing with the HTML5 video tag, except that the HTML5 video tag can't play XviD video files. – Cokegod Dec 21 '11 at 19:18
  • Never used it, so I cant't say. But it's worth a try! – bfavaretto Dec 21 '11 at 20:19
  • Flash Player has some file system access, so a user could select a local file for use. But Flash can't play XviD or .avi files, so what Cokegod wants to do can't be done with Flash anyway. – Lars Blåsjö Dec 22 '11 at 00:15