SageTV Community  

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

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-03-2008, 07:58 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Play AVI file from DVD drive

I am in the middle of one of my first tweaks to SageMC using Studio and have a number of successful changes so far. However, I am new to this and can't get something that seems like it would be simple to work.

The premiss... I have either 1 or 2 (multiple) AVI files on a DVD. I have created a customized "Play Other File" menu item in My Videos that will play a file from the "sagemc/dvd_drive_letter" drive when I select this new menu item. However, I have the file name hardcoded in a string.

I want to be able to....

1. Get a list of files in the root of the DVD drive (I have the drive letter from the property)
2. if there is only 1 file... get the file name and then play it (I have the code already working to play the file once I have a file name)
or
2. if there is more than 1 file then use the browser to list the files (I can get the browser to work but I can't get the file list and count to work)

Help

Ken
Reply With Quote
  #2  
Old 04-04-2008, 11:54 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I guess I just needed a little more patience.... I now have this working
Reply With Quote
  #3  
Old 04-04-2008, 01:02 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
You might consider adding the drive as an import directory, then it;ll just work like any other source.

You will need to refresh when you change disks though.
Reply With Quote
  #4  
Old 04-04-2008, 03:34 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Thanks for the suggestion. My refresh takes too long for this solution to be convenient. With the code change I made, I just import my STVI and I have a new button that just plays the single AVI file that is in the DVD drive, or if there are more, it opens a browser on that drive and lets me pick. I may also play with the "Play DVD" function to do the same thing if the DVD is not a standard DVD... but perhaps that is the next project.

Sure nice to have such a customizable application.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Video file formats SageTV can use to play video DMBinbc SageTV Software 5 06-14-2007 01:10 PM
issue playing DVD craigap SageTV Software 7 01-25-2007 04:20 PM
HDTV Network Encoder v0.9.0 07-08-05 - HD Support for Sage! Stealth1971 Hardware Support 292 02-23-2006 11:40 AM
STV: Cayars17 Ultimate STV (Release 17 - Jan 18) Cayars SageTV Customizations 3664 12-13-2005 05:35 PM


All times are GMT -6. The time now is 04:22 PM.


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