![]() |
|
|||||||
| 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
|
|||
|
|||
|
Starting to develop for Sage
Hi There,
So, i've decided I want/need to get into Sage Dev! I've been doing some light reading around the place and things aren't adding up. I am aware of STV's and STVi's along with the Sage Studio and Java API. All, I know now is the STV file is for UI and some basic logic. I want to get my hands dirty with the Java API really. Is it possible to use the Java API on it's own to create logic and also the UI components or do I need to combine it with the Studio? Basically, i'm looking for some sort of guide that connects everything together and demonstrates how to connect them. Any pointers much appreciated. Cheers, Makko P.S. My plan is to make a plugin that allows multiple users (parents) to be able to mark what they have watched and also an advanced search dialog. I would also like to connect to MySQL. Does Sage have it's own DB I can create tables in and query? |
|
#2
|
|||
|
|||
|
Quote:
http://forums.sagetv.com/forums/showthread.php?t=53905 http://code.google.com/p/tmiranda/wiki/MultiUser
__________________
Server (Headless): MSI H57M-ED65 mATX Motherboard, Intel i3-530 CPU, 4 x 2TB Hitachi Drives, Win7 Home Premium 32 bit, SageTV 7.1.9 Tuners: 4 x Hauppauge WinTV-HVR-2250 Dual TV Tuner Boards, 1 x SiliconDust HDHomeRun Dual Digital TV Tuner (OTA) Clients: 4 x HD300 Extenders, 2 x HD200 Extenders Miscellaneous: 2 x Sony RM-VLZ620 Universal Remote Controls |
|
#3
|
|||
|
|||
|
Quote:
However, I didn't see the project page on Google. I still have it installed i'll try another go. In saying that, I still want to get into dev.. I have a few projects I want to incorporate into sage. |
|
#4
|
||||
|
||||
|
The plugin should keep track of separate Watched status for all defined users. It does not add any special search features. All of the code is on Google so you can see how it all works however I would NOT recommend using it as a template if you have no Sage development experience.
To address some of your other questions: - Sage uses an internal database and you have no direct access to it, you must use the APIs documented in the manual. Other developers have used various databases so it is possible to do that. Sage has a rudimentary way of storing and retrieving data, see the User Record API. If the database needs are modest I'd highly suggest using the User Records over an external database for a variety of reasons that I can elaborate on if you are interested. - You can call static Java methods from within Studio. One of the manuals explains it in detail but basically the Java method must be static and you invoke it using the fully qualified method name using an underscore in place of the period. (So if the package name is tmiranda.mus.api you'd invoke tmiranda_mus_api_SomeStaticMethod()) There are lots of examples in numerous plugins.
__________________
Sage Server: ASUS/Intel C2D based system w/4GB RAM. WinXP Home, Hauppauge PVR 150, Hauppauge HVR-2250 and an HDHR. Runs headless. Accessed via VNC when necessary. Four HD-300 Extenders. |
|
#5
|
|||
|
|||
|
Thank you tmiranda,
I'll have a look at the code for that plugin. Are there any basic plugins you can think of that I could use a base? I'm assuming there are no great guides on getting hooked into Java? Another quick one: If you go down the Java route do you still need to do something with the studio or can you do it all from code? Thanks. |
|
#6
|
||||
|
||||
|
For a simple plugin that uses Studio but no Java, look at Java Heap Monitor. CPU Meter is a plugin that uses Studio and Java.
If you want your plugin to have a user interface you need to do that is Studio. The only exception is if you write a "General" plugin because they use Java to implement the standard configuration interface.
__________________
Sage Server: ASUS/Intel C2D based system w/4GB RAM. WinXP Home, Hauppauge PVR 150, Hauppauge HVR-2250 and an HDHR. Runs headless. Accessed via VNC when necessary. Four HD-300 Extenders. |
|
#7
|
|||
|
|||
|
Ok, I've just checked out your Google Code page but I don't see the source for the two projects you've mentioned, do you share it?
When you mentioned having a look did you mean the source or just install and see? Thanks. |
|
#8
|
||||
|
||||
|
It's all open source. Look here under Trunk: http://code.google.com/p/tmiranda/so...e/#svn%2Ftrunk
You will see all of the Java. The only way to see (and edit) the Studio code is through Studio. You install the plugin and then do a diff vs. the unmodified STV.
__________________
Sage Server: ASUS/Intel C2D based system w/4GB RAM. WinXP Home, Hauppauge PVR 150, Hauppauge HVR-2250 and an HDHR. Runs headless. Accessed via VNC when necessary. Four HD-300 Extenders. |
|
#9
|
|||
|
|||
|
Quote:
Last edited by makko; 08-21-2012 at 03:48 PM. |
|
#10
|
||||
|
||||
|
Quote:
For Java Heap Monitor, just install the plugin and then open up Studio. That's the only way to see Studio code anyway (and there is no Java in that plugin.) When I get home tonight I'll see what I can do about uploading CPU meter.
__________________
Sage Server: ASUS/Intel C2D based system w/4GB RAM. WinXP Home, Hauppauge PVR 150, Hauppauge HVR-2250 and an HDHR. Runs headless. Accessed via VNC when necessary. Four HD-300 Extenders. |
|
#11
|
|||
|
|||
|
Cool, thanks.
Much appreciated! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Must i buy sageTV to Develop a plugin? | chalise | SageTV Software | 4 | 03-11-2010 06:28 PM |
| Starting playback in Sage from java? | beelzerob | SageTV Studio | 27 | 12-02-2008 10:44 AM |
| Starting over, best way to transfer Sage settings | weeber | SageTV Software | 2 | 07-10-2007 11:50 AM |
| Starting Sage server now causes reboot | Morgan111 | SageTV Software | 0 | 11-25-2006 10:48 PM |
| How to develop my own plug-in? | Kalle | SageTV Customizations | 1 | 05-13-2004 12:02 AM |