private void OnStreamDestroyed(object sender, Session.StreamDroppedEventArgs e)
        {
            SubscriberUpdated?.Invoke();

            if (messagesOpentok.type == (int)CallStatus.CancellRing)
            {
                _medicalVideoCall.VideoCallStatusAsync((int)CallStatus.CancellRing, null, true);
            }
        }
Beispiel #2
0
        private void OnStreamDropped(object sender, Session.StreamDroppedEventArgs e)
        {
            var streamId      = e.P1.StreamId;
            var subscriberKit = _subscribers.FirstOrDefault(x => x.Stream?.StreamId == streamId);

            if (subscriberKit != null)
            {
                ClearSubscriber(subscriberKit);
                _subscribers.Remove(subscriberKit);
            }
            _subscriberStreamIds.Remove(streamId);
            RaiseSubscriberUpdated();
        }
 void OnStreamDestroyed(object sender, Session.StreamDroppedEventArgs e)
 {
     DeactivateStreamContainer(PublisherContianer);
     DeactivateStreamContainer(SubscriberContainer);
 }
Beispiel #4
0
 private void OnStreamDestroyed(object sender, Session.StreamDroppedEventArgs e)
 {
     DeactivateStreamContainer(_myStreamContainer);
     DeactivateStreamContainer(_otherStreamContainer);
 }
 private void OnStreamDestroyed(object sender, Session.StreamDroppedEventArgs e) => SubscriberUpdated?.Invoke();
Beispiel #6
0
 private void OnStreamDropped(object sender, Session.StreamDroppedEventArgs e)
 => DropStream(e.P1?.StreamId);
 private void OnStreamDropped(object sender, Session.StreamDroppedEventArgs e) => SubscriberUpdated?.Invoke(sender, new OpenTokUserUpdatedEventArgs(e.P1.StreamId));