After getting a list of the drive roots, is there a cross-platform way in Java to check whether any of the drives is:
- A DVD drive
- ...that contains a disk?
I want the user to be able to select a DVD for playing, and narrowing the options down to DVD drives rather than including other drives (such as pen drives, hard drives etc.) would be helpful in this case. If I can get a list of such drives, showing what ones contain disks would again be helpful (same reason.)
After searching around though I haven't found any way to do this that doesn't involve platform-specific hackery. Is there anything out there?