www.homeseer.com    
 

Go Back   HomeSeer Message Board > Developer Support > HomeSeer Plug-in Source Code Community Support > J River Media Center Plug-in Source Code

J River Media Center Plug-in Source Code This forum is for community support of HomeSeer plug-in source code.

Reply
 
Thread Tools Display Modes
  #1  
Old December 30th, 2013, 05:23 PM
MdeMan's Avatar
MdeMan MdeMan is offline
Seer Deluxe
 
Join Date: Oct 2004
Location: Texas
Posts: 259
Have some basic questions

Hope some one can help me with some basic questions I have. When programming I assume I need to add a reference library for JRMC to my project (I'm using visual studio 2008). How do I do this?

Thanks
Marcel
Reply With Quote
  #2  
Old December 30th, 2013, 08:10 PM
mrhappy mrhappy is offline
OverSeer
 
Join Date: Nov 2007
Location: W.Mids, UK
Posts: 6,741
If it is a .net reference then in VS click project > add reference and then browse for it and click OK (then at the top of your .vb file add Imports changing that to whatever it's name is).

If it is something older, perhaps COM based then IIRC (been years since I have done it) then you have to declare the functions/subs and name the DLL in one. Things start to get unpleasant when you reference DLL's that do not have equivalent data types in the native DLL language to whichever plugin language you are using.
Reply With Quote
  #3  
Old December 31st, 2013, 11:44 AM
MdeMan's Avatar
MdeMan MdeMan is offline
Seer Deluxe
 
Join Date: Oct 2004
Location: Texas
Posts: 259
Hello MrHappy,

Thanks for helping me out. I'm not a professional programmer and only have experience in programming in a DOS and Unix environment so this is challenging for me. I'm slowly starting to understand how this works. I tried what you mentioned reference the mediacenter.dll and put in in the top of my files and I can see all the calls to JRMC. Also I realize now that the source code I have must be .COM since the dll was not referenced and I was able to compile. Still don't understand one thing in the .COM version. I have defines as the one below. The part I don't understand is how can I check if this is still correct for JRMC.

Public Class MPAPPQItem
Public Instance As Integer
Public command As mp_command_types
Public url As String = ""
Public done As Boolean
Public playlist_name As String = ""
Public tracks() As String = Nothing
Public track_name As String = ""
Public TrackContains As String = ""
Public Faux As Boolean
Public Bool As Boolean
Public OptionalBool As Boolean
Public album As String = ""
Public artist As String = ""
Public result As String = ""
Public Parm As Object = Nothing
Public resultObj As Object = Nothing
Public mediatype As String = ""
Public playlist As Object 'MediaCenter.IMJPlaylistAutomation
Public playlist_index As Integer
Public ItemInfoToGet As String = ""
Public name As String = ""
Public key As Integer
Public PlayType As player_control_values

Thanks
Marcel
Reply With Quote
  #4  
Old December 31st, 2013, 11:59 AM
mrhappy mrhappy is offline
OverSeer
 
Join Date: Nov 2007
Location: W.Mids, UK
Posts: 6,741
You would need to look at the JRMC API for those answers I am sorry, I don't know anything about it but this looks a promising start http://wiki.jriver.com/index.php/Tip...udio_2005_.NET

It looks like JRMC also supports a web services interface so that might also be somewhere to go rather than messing around with other interfaces.
Reply With Quote
  #5  
Old December 31st, 2013, 01:10 PM
MdeMan's Avatar
MdeMan MdeMan is offline
Seer Deluxe
 
Join Date: Oct 2004
Location: Texas
Posts: 259
Hello MrHappy,

Thanks that helps. I'm starting to understand more and more about this plugin. It looks like it is a mix of interfaces that is being used. The .NET part still works but the other stuff isn't, very messy.

Marcel
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Three basic questions wkomorow HomeTroller Zee 2 November 18th, 2013 10:44 AM
2 basic questions stevewinick Insteon Plug-in (Mark Sandler) 2 November 27th, 2012 11:44 PM
Some basic questions... pwhite8314 DSC (3P) 4 March 15th, 2009 11:00 AM
Basic Questions itanic MCS Temperature 4 May 5th, 2005 12:13 PM
Some basic questions cmcjo Script & Plug-In Library Discussion 2 October 31st, 2002 04:15 PM


All times are GMT -4. The time now is 09:12 AM.


Copyright HomeSeer Technologies, LLC