|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
How to get the DVD ROM Drive Letter...
Is there an API call to get the drive letter of the
Code:
GetMediaFile() DVDDrive = FilterByBoolMethod(this, "IsDVDDrive", true) Now I'm also setting it up to be able to use an external DVD player. But I need to specifiy the drive letter as an argument passed. Now I can hard code it... but then I need two commands.. One for the ISO mounted images and one for the Actual DVD rom drive.. If I could determine the drive letter, then I could pass it in and avoid hardcoding it and having two nearly identical code trees... Any thoughts? I think I covered all the API's and I couldn't see anything that will return anything that will contain the drive letter... Thanks, Jim |
#2
|
||||
|
||||
Did you try GetFileForSegment? Should be able to get a full file path (including drive letter) from that.
__________________
-- Greg |
#3
|
||||
|
||||
That didn't work. It didn't return anything...
I'd still like to know... but for now I just hardcoded it... Jim |
#4
|
||||
|
||||
You're right; GetFileForSegment returns null, even with a disc in the drive.
Windows Media Player has APIs for this sort of thing. I've written some Java wrappers for those APIs; see the CD class in my SageWMP package. Javadocs and source are included in the download. Feel free to crib from the source if you don't want to use the whole plugin.
__________________
-- Greg |
#5
|
||||
|
||||
Thanks... But that's more involved then I care to get..
Passing a variable down through the chain and having two commands works just fine! Thanks though.. Jim |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|