Add a hot pluggable module for playing media off one or more USB memory sticks
Add a hot pluggable module to SYNplayer for loading, scanning, and playing media off one or more USB memory sticks.
Blueprint information
- Status:
- Not started
- Approver:
- Tudor Holton
- Priority:
- Undefined
- Drafter:
- Ken McLean
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Drafting
- Series goal:
- Accepted for 0.2
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
This feature depends upon the release of Java 7 to implemented properly (Tudor)
This is because Java 6 only implements File.listRoots() which returns an array of all the drives on Windows, but only a single root on Linux.
One hack for Java 6 on Windows is to detect if the root is writeable. However, this will only tell you if it's a CDROM, or if, for some other reason, Windows has blocked write access (e.g. Domain controlled machines)
Java 7, on the other hand implements class FileSystemView, which has methods "isDrive()", "isFilesystem()", and "isFloppyDrive()". This isn't perfect, because we'll have to search the whole tree to find the drives, but it at least makes it possible.