INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Plugin Questions  (Read 2500 times)

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Plugin Questions
« 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

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72536
  • Where did I put my teeth?
Re: Plugin Questions
« Reply #1 on: October 13, 2011, 07:41:25 pm »

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Plugin Questions
« Reply #2 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.
Logged
Matt Ashland, JRiver Media Center

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Re: Plugin Questions
« Reply #3 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?   

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Re: Plugin Questions
« Reply #4 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?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Plugin Questions
« Reply #5 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.
Logged
Matt Ashland, JRiver Media Center

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Re: Plugin Questions
« Reply #6 on: October 14, 2011, 12:23:54 pm »

Try adding and exporting a 'Terminate' function.

That was it.  Thanks

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Re: Plugin Questions
« Reply #7 on: October 14, 2011, 09:31:32 pm »

I got it all working except for recording status.  Is there a way to get that information?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Plugin Questions
« Reply #8 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.
Logged
Matt Ashland, JRiver Media Center

babgvant

  • Galactic Citizen
  • ****
  • Posts: 323
Re: Plugin Questions
« Reply #9 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. 
Pages: [1]   Go Up