I'm developing a plugin for HS2Pro that exposes the MusicApi to be used in HSTouch. So far, I have the basic structure of my plugin, have created two MusicApi interfaces and can use them both in HSTouch. I have been using the CurrentTrack and CurrentAlbumArtPath functions of the MusicApi and can draw them on my screens using the HomeSeer Music device.
What I cannot get to work is the PlayChangeNotifyCallback which is essential to notify HSTouch to refresh the currently playing track!
According to the scarcely detailed SDK, I need the following for PlayChangeNotifyCallback:
* RaisesGenericCallbacks() to return True in my HSPI
* The PlayChangeNotify event in HSMusicAPI class
? I need to RaiseGenericEventCB to notify of SongChanged
? I need to RegisterGenericEventCB
? I need to handle Generic Events in HSEvent
I can't seem to make HSTouch do anything useful with the event in my plugin. I can see that HSTouch calls RaisesGenericCallbacks and then CurrentTrack and CurrentAlbumArtPath when it is first launched but never again after.
There are barely any posts on here that talk about this. Can someone better describe the requirements to get HSTouch to talk with my plugin? Maybe explain how the event and event handler interact between HomeSeer, HSTouch, my HSPI and my HSMusicAPI class? Without PlayChangeNotifyCallback, my screens never update making it fairly useless.
What I cannot get to work is the PlayChangeNotifyCallback which is essential to notify HSTouch to refresh the currently playing track!
According to the scarcely detailed SDK, I need the following for PlayChangeNotifyCallback:
* RaisesGenericCallbacks() to return True in my HSPI
* The PlayChangeNotify event in HSMusicAPI class
? I need to RaiseGenericEventCB to notify of SongChanged
? I need to RegisterGenericEventCB
? I need to handle Generic Events in HSEvent
I can't seem to make HSTouch do anything useful with the event in my plugin. I can see that HSTouch calls RaisesGenericCallbacks and then CurrentTrack and CurrentAlbumArtPath when it is first launched but never again after.
There are barely any posts on here that talk about this. Can someone better describe the requirements to get HSTouch to talk with my plugin? Maybe explain how the event and event handler interact between HomeSeer, HSTouch, my HSPI and my HSMusicAPI class? Without PlayChangeNotifyCallback, my screens never update making it fairly useless.
Comment