SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2006, 06:42 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
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)
I'm setting up a mini import that will mount DVD ISO's...
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
Reply With Quote
  #2  
Old 07-22-2006, 07:22 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Did you try GetFileForSegment? Should be able to get a full file path (including drive letter) from that.
__________________
-- Greg
Reply With Quote
  #3  
Old 07-22-2006, 10:20 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
That didn't work. It didn't return anything...

I'd still like to know... but for now I just hardcoded it...

Jim
Reply With Quote
  #4  
Old 07-23-2006, 11:44 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote
  #5  
Old 07-23-2006, 01:35 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.