Catch when switching from playback to live mode, detect or subscribe or register

I would like to write an event handler for when the SmartClient user switches between Playback and Live Modes. I am familure with listening for incomming Alarms, but I can’t seem to find how to do this. Could you get me on the right track? Thanks.

You have to subscribe and listen to messages in the Smart Client. Both “System.ModeChangedIndication” and “SmartClient.ShownWorkSpaceChangedIndication” are valid choices.

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_message_id_1_1_smart_client.html&tree=tree_search.html?search=changedindication

I recommend that you explore the Message Tester plugin sample to best see how to use this..

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/messagetester/readme.html&tree=tree_1.html

https://github.com/milestonesys