INTERACT FORUM
Windows => Plug-in Development => Topic started by: babgvant on October 13, 2011, 07:17:50 pm
-
I'm trying to add support for MC in LcdWriter, and I have few questions about how to get some things from the objects provided.
So far I can initialize the plugin and get the current file, but I'm having trouble figuring out how to:
1) get the current position; I'd like to display it in ##:##/##:## (position/duration) format on the VFD
2) receive a notification that the application has closed (i.e. an unint method or something similar)
3) determine what kind of file is playing (video, music, photo, dvd, tv, etc.); this may be an artificial issue because of the current implementation and I could probably figure it out from the file extension if I have to so more a question around if it's there.
4) get recording status
Thanks
-
Have you been here?
http://wiki.jriver.com/index.php/Web_Service_Interface
-
If you're writing a COM interface plugin, you can ask for playback information here:
http://wiki.jriver.com/index.php/MJPlaybackAutomation
Like Jim mentioned, the web service is another good way to talk to the program. It's neat because it works from anywhere, and uses really standard (and so easy to implement in any language) REST calls.
-
Have you been here?
http://wiki.jriver.com/index.php/Web_Service_Interface
No :)
I don't see a way to get recording status from it though?
-
If you're writing a COM interface plugin, you can ask for playback information here:
http://wiki.jriver.com/index.php/MJPlaybackAutomation
I already started on a COM interface plugin for the "Now Playing" stuff, so that looks like the part I was missing re. the current position. Is there an object that I can use to get (or hook an event for) application close?
-
I already started on a COM interface plugin for the "Now Playing" stuff, so that looks like the part I was missing re. the current position. Is there an object that I can use to get (or hook an event for) application close?
Try adding and exporting a 'Terminate' function.
-
Try adding and exporting a 'Terminate' function.
That was it. Thanks
-
I got it all working (http://babgvant.com/files/folders/lcdwriter/default.aspx) except for recording status. Is there a way to get that information?
-
... except for recording status. Is there a way to get that information?
Not currently.
If you describe what information you're looking for, we can probably add it.
Thanks.
-
At the most basic level I need to be able to pull a list of all of the currently recording files including the channel, title, episode and start/end times. I don't use tuner information in LcdWriter, but I think it would be useful for other applications.
I think the web service be a natural fit for this and would expose both this list and the upcoming recordings.