When showing video + playbackcontroller togehter with messagecommunication (SmartClient.PlaybackIndication) i receive the following output:
MIP: Debug: MessageCommunication.Transmit (): Being called on the UI thread (Not recommended)
There is also an noticable delay in the playbackunsercontrol (about 1 sec when pressing controls). How can this be solved? This behaviour is not noticed in VideoViewerQuality where playbackusercontrol is not used. I already tried to start the messagecommunication in another thread, but the delay is still there.
Regards,
Michael
I do not understand the scenario. Are you using EnvironmentManager.Instance.RegisterReceiver ?
Are you doing the Transmit?
Perhaps you can elaborate on your question and outline the scenario..
I am using an ImageViewerControl with PlaybackUserControl. I also wanted to receive events when playback is started or stopped.
This is the code i used:
MessageCommunicationManager.Start(EnvironmentManager.Instance.MasterSite.ServerId);
MessageCommunication _messageCommunication = MessageCommunicationManager.Get(EnvironmentManager.Instance.MasterSite.ServerId);
object o1 = messageCommunication.RegisterCommunicationFilter(PlaybackHandler, new CommunicationIdFilter(MessageId.SmartClient.PlaybackIndication));
In this case there is a noticable lag when pressing controls of the playbackusercontrol and events are received (probably blocking a thread).
Now I changed accordingly to your answer using EnvironmentManager.Instance.RegisterReceiver and there are no more lags. Thanks!
Regards,
Michael