internal void FireOnParticipantLiveSessionVideosChanged(SktParticipant sender, OnParticipantLiveSessionVideosChangedArgs e) { if (OnParticipantLiveSessionVideosChanged == null) return; // No event assigned if (gui == null) { FireCallbackInSeparateThread(e, OnParticipantLiveSessionVideosChangedInNewThread); return; } gui.BeginInvoke(OnParticipantLiveSessionVideosChanged, new object[] { sender, e }); // Synchronizing to gui thread }
internal void ProcessOnParticipantLiveSessionVideosChanged(SktParticipant sender) { if (skypeRef.logging) skypeRef.Log("Processing event OnParticipantLiveSessionVideosChanged"); OnParticipantLiveSessionVideosChangedArgs args = new OnParticipantLiveSessionVideosChangedArgs(); int marker = 0; int typeTag = 0; do { typeTag = skypeRef.transport.ReadByte(); if (typeTag == 122) break; marker = skypeRef.transport.ReadByte(); switch (marker) { default: if (marker != 122) skypeRef.Error(String.Format("Invalid event argument tag {0} in OnParticipantLiveSessionVideosChanged", marker)); break; } } while (marker != 'z'); skypeRef.transport.ResumeSocketReaderFromEvent(); args.senderobj = sender; FireOnParticipantLiveSessionVideosChanged(sender, args); }