INTERACT FORUM

Windows => Plug-in Development => Topic started by: babgvant on October 13, 2011, 07:17:50 pm

Title: Plugin Questions
Post 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
Title: Re: Plugin Questions
Post by: JimH on October 13, 2011, 07:41:25 pm
Have you been here?
http://wiki.jriver.com/index.php/Web_Service_Interface
Title: Re: Plugin Questions
Post by: Matt on October 13, 2011, 07:48:31 pm
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.
Title: Re: Plugin Questions
Post by: babgvant on October 14, 2011, 08:43:18 am
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?   
Title: Re: Plugin Questions
Post by: babgvant on October 14, 2011, 08:45:04 am
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?
Title: Re: Plugin Questions
Post by: Matt on October 14, 2011, 09:22:07 am
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.
Title: Re: Plugin Questions
Post by: babgvant on October 14, 2011, 12:23:54 pm
Try adding and exporting a 'Terminate' function.

That was it.  Thanks
Title: Re: Plugin Questions
Post by: babgvant on October 14, 2011, 09:31:32 pm
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?
Title: Re: Plugin Questions
Post by: Matt on October 15, 2011, 08:28:16 am
... 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.
Title: Re: Plugin Questions
Post by: babgvant on October 15, 2011, 12:08:01 pm
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.