|
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
|
||||
|
||||
Quote:
That being said, much the of the code in the api is autogenerated from the SageTV javadocs. The code currently parses the javadoc and creates a metadata for the SageAPI, from that, java apis, jsp tags, and http apis are generated. So, you could create a generator, and generate .cs files that proxy the the http calls.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#62
|
|||
|
|||
I'm having a hard time getting this installed using the Jetty method. I have Jetty running for the mobile interface, so it seems to be configured properly.
I have sagex.xml in C:\Program Files\SageTV\SageTV\jetty\contexts & sagex.api-6.4.8-11.jar in C:\Program Files\SageTV\SageTV\JARs but http://localhost:8181/sagex/rpcXml/Global/GetOS gives me a 404. Any suggestions? Thanks. |
#63
|
||||
|
||||
If you've previously installed the remote apis under nielm's server, then remove the servlet entry from his servlets.properties file before installing it into jetty.
Could you check your sagetv_0.txt log file (in the sagetv home directory) and see if it contains the following entries. Code:
Wed 12/24 15:39:50.885 Remote API Servlet initializing. Wed 12/24 15:39:50.887 Sage Provider Implementation: sagex.remote.EmbeddedSageAPIProvider; sage://embedded Wed 12/24 15:39:50.907 Sage Xml RPC Servlet Created. Wed 12/24 15:39:50.908 Sage Java RPC Servlet Created. Wed 12/24 15:39:50.909 Sage Json RPC Servlet Created. Wed 12/24 15:39:50.911 Media Servlet Handler Created. Wed 12/24 15:39:50.913 Sage Xbox Xml RPC Servlet Created. Wed 12/24 15:39:50.914 Registered Handlers. Wed 12/24 15:39:50.914 Configuring Remote Broadcast Services... Wed 12/24 15:39:50.915 Properties not found: /opt/sagetv/server/sagex-api.properties; using defaults. Wed 12/24 15:39:50.917 Sage Remote Api Info: Server: mediaserver; Rmi Port: 1098; Http Port: 8081 Wed 12/24 15:39:50.958 Starting Sage RMI Server... Wed 12/24 15:39:51.069 Sage Java RMI Server ready Wed 12/24 15:39:51.104 Annoucing Remote Sage API Server availability.... Wed 12/24 15:39:51.105 2008-12-24 15:39:51.625::INFO: Deploy /opt/sagetv/server/jetty/contexts/sagex.xml -> org.mortbay.jetty.servlet.Context@324ff{/,null} Also, make sure that in your JARs directory, that you only have a 1 copy of the sagex.api jar file. If there multiple copies, with diferrent versions, then delete all other copies, except the latest version. What's your java version?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#64
|
|||
|
|||
Closest thing I have in the sagetx_0.log is
Fri 12/26 22:27:20.355 Loading startup runnable:sagex.jetty.starter.Main Fri 12/26 22:27:20.358 Loaded startup runnable:sagex.jetty.starter.Main localhost was on the sage server. only 1 of the sagex.api files is present (I had previously deleted *-9) Version 6 Update 11. Thanks |
#65
|
||||
|
||||
Uncomment the
Code:
DEBUG=true
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#66
|
|||
|
|||
no difference.
|
#67
|
||||
|
||||
I forgot to ask you to make the API request again after turning on debug logging. Did you try that and then check the logs?
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#68
|
|||
|
|||
I did. I also did a request to the mobile app; neither caused any logging.
|
#69
|
||||
|
||||
Would you mind restarting SageTV, then posting your sagetv_0.txt log file from the server. Wait a few minutes after you restart before sending the log file to be sure that jetty extracts and starts everything. It seems odd that you don't have more relevant information in your log file.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#70
|
|||
|
|||
pm'd you a link to the file.
Thanks for looking at it |
#71
|
||||
|
||||
New Release 6.4.8-12
Added rpcXbmc handler (contributed by mikwilli) and jreichen found an issue with the sage context, so there's a new context file.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#72
|
|||
|
|||
return to page?
I am wondering how you are able to assign the http rpcXml to a button and then have it not return the xml but just display the page the button was originally clicked on?
|
#73
|
||||
|
||||
Quote:
Thanks.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#74
|
|||
|
|||
When I send a hfref command via a button on an html page such as:
http://10.0.1.1:8080/sagex/rpcXml/Gl...OCESS_LOCAL_UI I get back an xml display like: <response> <header> </header> <body> </body> </response> Is there a tag to redirect back to the page where the button was clicked or is there a smarter way to attach the command to a button? Thanks |
#75
|
||||
|
||||
Quote:
Check out the "testJson.html" page in my test area You'll need both the testJson.html and the jquery js files. Hope this helps.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#76
|
|||
|
|||
How do you use the API when it requires an object as an argument?
For e.g. I'm trying to pull the MediaFile reference for a path via GetMediaFileForFilePath which requires a java.io.File. I've tried passing in the path to the file (what I get back when calling GetSegmentFiles, which returns a java.io.File). Thanks |
#77
|
||||
|
||||
Quote:
Code:
package test; import java.io.File; import sagex.api.AiringAPI; import sagex.api.MediaFileAPI; public class TestMisc { public static void main(String args[]) { Object mediafile = MediaFileAPI.GetMediaFileForFilePath(new File("/var/media/tv/Futurama-SpacePilot3000-2007144-0.ts")); System.out.printf(" Title: %s\n", MediaFileAPI.GetMediaTitle(mediafile)); System.out.printf("Is Watched: %s\n", AiringAPI.IsWatched(mediafile)); } } If this isn't what you were asking then my apologies not understanding the question.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#78
|
|||
|
|||
Quote:
|
#79
|
||||
|
||||
Download the latest jar, which fixes a bug when file parameters are used.
Then use the following syntax for passing file parameters Code:
http://mediaserver:8081/sagex/rpcXml/MediaFileAPI?command=GetMediaFileForFilePath&1=/var/media/tv/Futurama-SpacePilot3000-2007144-0.ts Code:
<response> <header> </header> <body> <objectRef ref="25756944"/> </body> </response> Code:
http://mediaserver:8081/sagex/rpcXml/MediaFileAPI/GetMediaTitle/25756944
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#80
|
|||
|
|||
Perfect, thanks.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hauppauge Remote Issue | yacht_boy | Hardware Support | 4 | 05-01-2008 09:25 PM |
MCE remote transmitting keypresses twice | arnabbiswas | Hardware Support | 1 | 02-22-2007 10:55 AM |
MCE Remote not work fully with Placeshifter | devinteske | SageTV Placeshifter | 5 | 02-08-2007 11:45 PM |
Harmony Remote IR Reciever Help | brundag5 | Hardware Support | 2 | 01-13-2007 09:08 PM |
How to get SageTV to release focus to NVDVD for remote | IncredibleHat | SageTV Software | 4 | 07-06-2006 07:47 AM |