|
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 |
#241
|
||||
|
||||
Quote:
The very first sentence... Quote:
Code:
http://localhost:8080/sagex/api?c=GetFileDuration&1=mediafile:86533
__________________
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 |
#242
|
||||
|
||||
Thanks you. I had looked at the documentation, but I was so eager to start using the methods that I missed that info at the top.
This is now working. Thanks, again. |
#243
|
||||
|
||||
Glad it's working, and good luck.
__________________
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 |
#244
|
||||
|
||||
Quote:
I suppose the pictures would also need a dedicated method, as the /sagex/media/thumbnail/ didn't seem to work them.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#245
|
||||
|
||||
Quote:
/sagex/media/albumart/#### where #### is the mediafile id of the mediafile that belongs to the album. I don't don't have any music on my test server, so i can't really test this myself.
__________________
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 |
#246
|
||||
|
||||
Thanks, that does work great!
So what about photos, any way to get at them?
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#247
|
||||
|
||||
Quote:
/sagex/media/mediafile/#### I'm assuming this would work for music, photos and video files, but I haven't tested it btw, you may be able to do it by file a well, if you used /sagex/media/mediafile?mediafile=full_path_to_mediafile provided the full_path_to_mediafile resolves to a mediafile when passed to GetMediaFileForPath()
__________________
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 |
#248
|
||||
|
||||
Quote:
Code:
Problem accessing /sagex/media/mediafile/161. Reason: F:\Photos\JP-Lisette\Picture 209.jpg Quote:
Code:
sagex.api (7.0.23.3): Media Handler Error 3 java.lang.ArrayIndexOutOfBoundsException: 3 at sagex.remote.media.MediaHandler.handleRequest(MediaHandler.java:65) at sagex.remote.SagexServlet.doPost(SagexServlet.java:63) at sagex.remote.SagexServlet.doGet(SagexServlet.java:41) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:322) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#249
|
||||
|
||||
I just tried
Code:
http://localhost:8080/sagex/media/mediafile?mediafile=/home/sean/BETA/Images/IMG_20100722_131852.jpg I also tried doing it by by id as well, and it worked. Code:
http://localhost:8080/sagex/media/mediafile/513870
__________________
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 |
#250
|
||||
|
||||
Doh! I moved my photos' folder and the wiz.bin was still pointing to the older location, which is why that wasn't working... So the thumbnail works for the pictures, though the other methods are trying to play an mpg.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#251
|
||||
|
||||
Since those images are bigger than what I need, I've been trying to rescale them with Phoenix API and &transform=[{name:scale, height:100},{name:reflection}], but I'm not having much luck... Is that supposed to only work for the posters or for the rest too?
Used with the /media/thumbnail, that results in a "Not A MediaFile", while with "media/mediafile?mediafile=" the full image is returned, not transformed...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#252
|
||||
|
||||
Quote:
__________________
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 |
#253
|
||||
|
||||
I wonder if i'm automatically setting the mime type a video mime type... i know the apis are quite dumb in that they don't really check what is being returned.
__________________
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 |
#254
|
||||
|
||||
Quote:
That might explain it...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#255
|
||||
|
||||
With /media/thumbnail, I am getting the feeling that if the thumbnail does not already exists, the first call will fail and a second call is required. Any chance of catching it server side?
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#256
|
||||
|
||||
I'm not sure I understand. Basically I just call the GetThumnail api and convert it. It may be that Sage is asynchronous in that manner, in that the MetaImage returned may not acutallly have created the physical thumbnail. I'm not sure how to catch, this, because I don't think an error is thrown on the server. I may have some time to look at this on the weekend, and see what is happening. I've noticed similar behaviour from the bmt web ui, but i haven't been curious enough yet to actually look at it
__________________
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 |
#257
|
||||
|
||||
Yes that's what I'm thinking. While there might not be any error, there must be a completion event, as you can see the STV filling up those thumbnails as they get generated (if they were missing).
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#258
|
||||
|
||||
Quote:
<89504e47 0d0a1a0a 0000000d 49484452 00000010 00000010 08060000 001ff3ff 61000000 12494441 5478da63 601805a3 60148c02 08000004 100001af 45882c00 00000049 454e44ae 426082> That seems to convert to a blank image of 1 MB size or maybe it's just garbage...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#259
|
||||
|
||||
Quote:
__________________
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 |
#260
|
||||
|
||||
Quote:
BTW, on another note... I've added a force-mime parameter to the /mediafile/ handler. So, if you request an image, from the image libary, then you can force a mime type as well... /sagex/mediafile/1232323?force-mime=image/jpeg or /sagex/mediafile?mediafile=/path/to/music.mpg&force-mime=audio/mpeg You may not need to actually force a mime, because I do check and set a mime type based on the media file type. But, if i choose the wrong one, then you have the option to override.
__________________
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 |
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 |