INTERACT FORUM

Please login or register.

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

Author Topic: [Request] Additional events for the event interface  (Read 1686 times)

poiru

  • Recent member
  • *
  • Posts: 29
[Request] Additional events for the event interface
« on: December 03, 2011, 03:45:38 am »

I think the following events (for FireMJEvent) would be nice:
- MCC: UPDATE_FLAG_FILE_PROPERTIES (sent when track metadata is changed)
- MCC: NOTIFY_PLAYBACK_OPTIONS_CHANGED (sent when shuffle/repeat is changed)

Another alternative would be to subclass the "MainUIWnd" window procedure in order to receive the notification messages, but that could potentially lead to unwanted trouble. Is there a recommended method?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: [Request] Additional events for the event interface
« Reply #1 on: December 12, 2011, 10:55:59 am »

In cases where the provided notifications don't give you the notifications you need, you can register any window to receive all MCC notifications by using:
pMJ->RegisterWindowWithRouter(HWND hwndRegister, BOOL bRegisteredState)

After this, you'll get WM_MC_COMMAND messages to that window.

Two things to remember:
1) Make sure hwndRegister is a window created and running on the main user interface thread
2) Remember to unregister before your window is destroyed
Logged
Matt Ashland, JRiver Media Center

poiru

  • Recent member
  • *
  • Posts: 29
Re: [Request] Additional events for the event interface
« Reply #2 on: December 12, 2011, 12:10:50 pm »

Fantastic, somehow managed to miss the RegisterWindowWithRouter function. Thanks!
Logged
Pages: [1]   Go Up