|
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
|
|||
|
|||
Console outputting, and stopping playback via the API.
Is there some way to capture the console output into a file, especially without having to go into the registry to enable the console? I'm assuming that System.out messages in java go SOMEWHERE and can be captured and output even if the console isn't visible.
Also, what is the api call to stop playback of a media file? I can find Play() and Pause() easy enough...but no stop(). I am currently using CloseAndWaitUntilClosed(). However, this doesn't have the same effect as clicking the Stop button in the media player. When I click stop, it takes me back to the video selection menu. When I stop via the CloseAndWaitUntilClosed() api call, it just turns the screen blank...then I have to hit escape to bring up a menu, and from that menu I choose "Halt playback", and then I get the menu. So, maybe I'm not using the right api call to stop playback? Thanks for all the help! |
#2
|
||||
|
||||
Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#3
|
||||
|
||||
Quote:
But if you want a log of just your own debug output, open a PrintWriter onto a file and use that instead of System.out or DebugLog().
__________________
-- Greg |
#4
|
|||
|
|||
Quote:
sage.SageTV.api("CloseAndWaitUntilClosed", null); I don't know how I'd tell it what to do next. However, that all sounds moot since I can use the Sagecommand() for this. Where is a list of valid commands? I can guess "Stop" is one of them, but who knows what else might prove useful! Gkusnik, thanks...that's exactly what I wanted. |
#5
|
||||
|
||||
Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#6
|
||||
|
||||
Quote:
__________________
-- Greg |
#7
|
||||
|
||||
I referenced the commands in the SageTV UI because that should be the actual text to use with SageCommand(), in case I wrote any of them slightly differently in the manual.
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#8
|
|||
|
|||
Well, either way Stop appears to be Stop. thanks a lot. Looks like most other commands I can probably just use a direct api call, but that Stop command had me stumped.
|
#9
|
||||
|
||||
if you want to manually call 'CloseFileAndWaitUntilClosed()' then call the code that goes back to the appropriate screen (as 'stop' is sometimed used for other things, like backspace when inputting NTE), then search and link the action tree labled:
"Return to menu where media may have come from" (which should be in Stop listener in MediaPlayerOSD)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#10
|
|||
|
|||
Well, I went with the SageCommand("Stop"), and it works just great...just like hitting Stop manually. That works for me!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|