|
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 |
#61
|
|||
|
|||
So far so good....
I am able to get a list of all of the recorded shows, and then I send that list to CQC, which it displays. You can then select a show on the list, and I send back to Sage the index into the list. What I'd like to do (at this point) is then Play that selected index. So, what I tried to do is just use MediaPlayerAPI.Watch(), and I passed it in the mediafile from the list I had saved, at the passed in index. Watch(mediafile) returns an object, which is either true if it worked, or a "localized error message" of it didn't. Because it didn't start playing the selected show, I assumed it was an error. So, I printed the object as a string, and it was "sage.e$e@a415a3". Any idea how I can make that localized error message more understandable? Or, why my passed in MediaFile isn't working? Or is there a smarter way to tell Sage to play a particular showing/airing/mediafile? |
#62
|
||||
|
||||
Watch() is how you start playback. I don't know of another way to do it.
There's another thread that talks about the objects returned by Watch(), but the upshot is that nobody seems to have a good idea of how to deal with them from Java. As to why your call to Watch() isn't working, you might try checking your debug logs. But now we're starting to get pretty far off topic from Studio Tools, so further debugging of that issue might best be done in another thread.
__________________
-- Greg |
#63
|
|||
|
|||
Java 1.6 or 1.5 compatible
Hi,
You state that the code should work with java 1.5, but i see in the code that in Hook.java you use: public boolean importData(TransferHandler.TransferSupport support) and TransferHandler.TransferSupport is only from java 1.6 . Java 1.6 is giving me a hard time, and I would like to not use it right now. Is there a way to go around this, and be able to use java 1.5? (I realize its a change in code, and will need to wait -if ever, for a new version).
__________________
Server SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1 Client SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1 Using Nielm's Web server 2.22 |
#64
|
||||
|
||||
You're right, it looks like a 1.6 dependency snuck in there somehow (even though I always work from the 1.5 Javadocs). I'll have to see what can be done about that. I can probably recode it for 1.5 compatibility, but at the moment I don't have a timetable for when the next release might be.
__________________
-- Greg |
#65
|
|||
|
|||
Is it just me or is this not compatible with 6.2.4 beta?
|
#66
|
||||
|
||||
You might need to specify which part you are having problems with... the things I use in Studio have been working for me all along.
- 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. |
#67
|
|||
|
|||
Well it doesn't look like it is even loading no menu items no entries in the log. But it lists in the system info as having been.
Nevermind stupid error I uninstalled Java and am back to an incompatible version. |
#68
|
||||
|
||||
Hey Greg,
I'm modifying my STVi to use your import plug-in and I'm having trouble with one reference. Any thoughts would be greatly appreciated. Reference: Code:
backref>>0@Menu:Add Advanced Record/Panel:RecordOptions/Conditional:Frequency == 1/Panel:RecOption/Conditional:GetServerProperty("sagemc&slash;use_standard_compression", true)/Branch:false/Action:"REM link for compression STVi" Code:
Menu:Add Advanced Record/Panel:RecordOptions/Conditional:Frequency == 1/Panel:RecOption/Conditional:GetServerProperty("sagemc&slash;use_standard_compression", true)/Branch:false/Action:"REM link for compression STVi" Thanks
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) |
#69
|
||||
|
||||
The path is ambiguous because of the duplicate Ifs and all the identically-named RecOption panels. The path-decoding logic is fairly dumb and doesn't handle that case very well; it expects the names to be unambiguous.
I can look into making it smarter, e.g. by trying all the matching children until it finds one that works, instead of qutting after the first failure. But a quicker and better solution might be for Dirk to collect all such dummy link points under some unambiguous top-level widget, and then reference them from the point of actual use. That way your backref paths would be a lot shorter, and less prone to breakage if he rearranges his code.
__________________
-- Greg |
#70
|
|||
|
|||
Quote:
Dirk |
#71
|
||||
|
||||
Received updated STV and everything is working great, thanks guys.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) |
#72
|
||||
|
||||
One import file for Default STV and SageMC?
Hey Greg,
Would it be possible to manually setup conditionals in my STVi such that if the STV is SageMC it imports one menu where as if its the default STV it imports another? Thanks, Scott
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) |
#73
|
||||
|
||||
Sage always imports all the menus defined in the STVI file. I don't have any control over that. (Well, I could write a whole new importer to parse the file and conditionally create the widgets. But then, so could you.)
But of course importing the menus isn't the whole story. The imported menus still have to be hooked up to existing menus, and you can put whatever conditional code you like in your STVImported hook to accomplish that. If you're using the automatic ProcessImport code in my tools (which I presume is why you're asking on this thread), then I'm not sure any conditional code would be necessary. If the backref path is found, the code will be hooked up. If not, not. So it seems like all you would have to do is set up the right backrefs to the two different STVs and the right thing will happen in each case. You'd have to set up those backrefs manually, though, since Export As STVI works only in the context of the current STV. Or is that your question? I.e. how do you set up backrefs manually? My advice would be to study some automatically generated backrefs to get the basic structure, and then use the Copy Widget Path command to get the actual paths you want. That said, this sounds like a pretty laborious way to do things. I guess if I were doing it, I'd try to structure it as three separate STVIs: one that hooks into the default STV and does nothing but define another set of STV-independent hooks, a second that does the same for SageMC, and a third that contains the actual implementation and hooks into the common hooks defined by the two "compatibility layer" STVIs. Each of those three can then be maintained using the automatic tools without having to manually futz with backref paths.
__________________
-- Greg |
#74
|
||||
|
||||
I've added the StudoTools, and I see the "Plugins" menu. When I select "Manage" I get a message "No studio plugins were found". After reviewing the sagetv_0.txt log file, I noticed this exception.
Quote:
|
#75
|
||||
|
||||
It looks like it's breaking in some tricky code I wrote to get a reference to the right-click popup menu by simulating a right mouse click at init time. Apparently this code isn't working for you, perhaps because right-click isn't the appropriate popup trigger event on your platform, or because the mouse buttons are numbered differently, or something along those lines. (So much for "write once, run anywhere".)
I'm not a Linux user myself and don't have a way of testing or debugging on that platform. In fact you may be the first person to try these tools on Linux. Source is included in the zip file if you want to try tinkering with that code yourself to generate the correct popup trigger.
__________________
-- Greg |
#76
|
||||
|
||||
Thanks. I looked at the code. I'll check to see if I can provide a fix for Linux. Just wanted to check to see if anyone else has had the problem and fixed it first.
Is there a public cvs repository for the code? If not, do you want me to send you a patch or complete codebase or nothing at all? - Sean |
#77
|
||||
|
||||
No, there's no public repository. Hopefully any fix you come up with will be no more than a couple of lines of code, and you can just post the change here or PM it to me for inclusion in the next release.
__________________
-- Greg |
#78
|
||||
|
||||
Linux Fix for Studio Tools
Greg,
The fix to make your tools work in linux are trivial, so i'll post them here and you can put it back into your original codebase. In Hook.java, 2 small changes.... Quote:
The second change was replacing "JARs\\" with "JARs"+File.separator. File.separtor is the cross platform string that resolves to "\" on windows and "/" on unix. These changes should have no impact on your existing windows users. Thanks for the great toolset. I look forward to utilzing them. --Sean. |
#79
|
||||
|
||||
Hi Greg,
I have a quick question. As part of an STVi import, I want to add custom listeners to the 'Global' theme, but I have no a-priori knowledge of whether or not the 'Global' theme exists in the STV. (It doesn't exist in the base version, but it could be added by another import) Since there can be only one 'Global' theme, what would be your recommendation for creating the theme if it doesn't exist and then adding the listeners? My first thought is that this might be handled the same way you handle adding hooks (where the hooks are created on the fly at import time if necessary), but there wasn't any mention of this in the documentation. I'm guessing the only alternative would be to put the logic into the STVImported hook the old fashioned way. I would appreciate any advice you can give. Aloha, Mike P.S. Thanks for these indespensible tools!!! |
#80
|
||||
|
||||
No, there's no logic in place to implicitly create the Global theme. Here's what I'd suggest as a workaround:
1. Create the Global theme manually in the stock STV and link your listeners to it using the usual backref mechanism. 2. Put code into your STVImported hook to check for the Global theme and create it if not present (but don't add any additional logic to link up your listeners). 3. Export As STVI. 4. Load up the generated STVI for editing and manually move your check-and-create code up to before the call to ProcessImport. That way when ProcessImport runs, the Global theme is guaranteed to exist and your backref links will link up properly. 5. Remember to delete the spurious Main Menu before saving. Disclaimer: I haven't actually tried this, but it seems like something along these lines ought to work, if you don't mind hand-massaging the STVI after it's been generated.
__________________
-- Greg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|