INTERACT FORUM

Please login or register.

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

Author Topic: Plugin for Homeseer  (Read 3526 times)

Marcel de Man

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 79
  • nothing more to say...
Plugin for Homeseer
« on: December 31, 2013, 11:35:47 am »

Hello

This is all new to me and I could use some help. I'm trying to fix the homeseer plugin for MC. Slowly starting to understand how the engine(dll) works between the two but have one basic question. How can I check if my defines are still correct (see sample below).

Public Enum mp_command_types
    player_play = 1
    player_stop = 2
    player_play_url = 3
    player_pause = 4
    player_resume = 5
    player_mute = 6
    player_unmute = 7
    player_volume_up = 10
    player_volume_down = 11
    'player_track_ended = 12
    lib_get_playlist_tracks = 13
    lib_play_playlist_one = 14
    UNUSED_lib_reload = 15
    playlists_add_playlist = 16
    playlists_delete_playlist = 17
    playlists_add_track = 18
    playlists_delete_track = 19
    UNUSED_get_current_item_url = 20
    UNUSED_get_current_item_name_mediaplayer = 21
    video_enable_visuals = 22
    video_hide_video = 24
    video_enable_fullscreen_visuals = 25
    track_mediatype = 27
    UNUSED_track_iteminfo = 29
    lib_play_playlist_all = 30
    add_track_to_playlist = 49
    clear_currentplaylist = 51
    player_fast_forward = 60
    player_rewind = 61
    player_current_state = 62
    player_play_by_key = 63
    UNUSED_player_play_track_by_name = 64
    UNUSED_track_album = 65
    UNUSED_track_artist = 66
    UNUSED_track_rating = 67
    player_play_by_key_nostart = 68
    player_play_by_key_nostart_sorted = 69
    player_play_by_key_sorted = 70
    JRMC_ShowWindow = 80
    JRMC_HideWindow = 81
    JRMC_HSPLOrdered_Reset = 100
    JRMC_HSPL_Reset = 101
    JRMC_StartHSPlaylist = 102
    JRMC_HandleShuffle = 103
    JRMC_MediaPlayerPlayPlaylist = 104
    JRMC_Search = 105
    JRMC_LibGet = 106
    JRMC_LibGetPlaylists = 107
    JRMC_AddTrackToPlaylist = 108
    JRMC_CheckLibChange = 109
    JRMC_CheckPlaylistChange = 110
    JRMC_NewPlaylist = 111
    JRMC_DeletePlaylist = 112
    JRMC_DeleteTrackFromPlayList = 113

End Enum

Thanks
Marcel
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72443
  • Where did I put my teeth?
Re: Plugin for Homeseer
« Reply #1 on: December 31, 2013, 11:54:34 am »

I'm not the right person to answer, but there are some useful sections here:
http://wiki.jriver.com/index.php/DevZone

I think you may be using the COM interface, but take a look at Web Services as well.
Logged

Marcel de Man

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 79
  • nothing more to say...
Re: Plugin for Homeseer
« Reply #2 on: December 31, 2013, 02:28:02 pm »

Like I said I'm pretty new at this. I bought pre-existing software from homeseer that I'm trying to fix. So far I found that it is a combination of .NET and COM. The .NET part still works the COM part doesn't. I'm to green to rewrite this whole thing using a different interface, maybe later when I have more experience. At this moment my only option is to make this work and for that I would need to know if the COM interface is still available for MC18 and next where to find the definition.

Thanks
Marcel
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72443
  • Where did I put my teeth?
Re: Plugin for Homeseer
« Reply #3 on: December 31, 2013, 04:11:17 pm »

It is.  In the devzone link.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Plugin for Homeseer
« Reply #4 on: January 04, 2014, 04:13:27 pm »

COM still works fine, even in MC19.

I have a wrapper class that makes it relatively painless to use from C# (or any .NET language), though it isn't finished.  PM me for details if you want a copy.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Marcel de Man

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 79
  • nothing more to say...
Re: Plugin for Homeseer
« Reply #5 on: January 13, 2014, 01:55:18 pm »

Hello Glynor,

It seems that the structure of the JRMCAPIInstance class has changed starting at MC18. Would you be able to tell me what the structure is now?

Thanks
Marcel
Logged
Pages: [1]   Go Up