public override void StreamCreated(OTSession session, OTStream stream) { if (_this._subscriber == null) { _this.DoSubscribe(stream); } }
public override void StreamDestroyed(OTPublisher publisher, OTStream stream) { //InvokeOnMainThread (() => { _this.CleanupSubscriber(); _this.CleanupPublisher(); //}); }
public override void StreamCreated(OTPublisher publisher, OTStream stream) { if (_this._subscriber == null) { InvokeOnMainThread(() => _this.DoSubscribe(stream)); } }
public override void StreamDestroyed(OTPublisher publisher, OTStream stream) { System.Diagnostics.Debug.WriteLine("PublisherDelegate:StreamDestroyed: " + stream.StreamId); _this.CleanupSubscriber(); _this.CleanupPublisher(); }
public override void StreamDestroyed(OTPublisher publisher, OTStream stream) { Debug.WriteLine("PublisherDelegate:StreamDestroyed: " + stream.StreamId); provider.CleanupSubscriber(); provider.CleanupPublisher(); }
public override void StreamCreated(OTSession session, OTStream stream) { System.Diagnostics.Debug.WriteLine("SessionDelegate:StreamCreated: " + stream.StreamId); if (_this._subscriber == null && !_this._subscribeToSelf) { _this.DoSubscribe(stream); } }
public override void StreamCreated(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamCreated: " + stream.StreamId); if (this.provider._subscriber == null && !this.provider.SubscribeToSelf) { this.provider.DoSubscribe(stream); } }
public override void StreamCreated(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamCreated: " + stream.StreamId); if (_this._subscriber == null) { InvokeOnMainThread(() => _this.DoSubscribe(stream)); } }
/** * Instantiates a subscriber for the given stream and asynchronously begins the * process to begin receiving A/V content for this stream. Unlike doPublish, * this method does not add the subscriber to the view hierarchy. Instead, we * add the subscriber only after it has connected and begins receiving data. */ public void DoSubscribe(OTStream stream) { _subscriber = new OTSubscriber(stream, new SubscriberDelegate(this)); OTError error; _session.Subscribe(_subscriber, out error); if (error != null) { this.RaiseOnError(error.Description); } }
public override void StreamCreated(OTPublisher publisher, OTStream stream) { Debug.WriteLine("PublisherDelegate:StreamCreated: " + stream.StreamId); // If Subscribe To Self is true: Our own publisher is now visible to // all participants in the OpenTok session. We will attempt to subscribe to // our own stream. Expect to see a slight delay in the subscriber video and // an echo of the audio coming from the device microphone. if (provider._subscriber == null && this.provider.SubscribeToSelf) { provider.DoSubscribe(stream); } }
private void Subscribe(OTStream stream) { lock (_syncRoot) { if (_subscriber != null || _session == null) { return; } OTError error; _subscriber = new OTSubscriber(stream, null); SubscribeForSubscriberEvents(_subscriber); _session.Subscribe(_subscriber, out error); } }
public override void DidReceiveStream(OTSession session, OTStream stream) { Debug.WriteLine("DidReceiveStream ({0})", stream.StreamId); // See the declaration of subscribeToSelf above if ((_this.subscribeToSelf && Equals(stream.Connection.ConnectionId, _this._session.Connection.ConnectionId)) || (!_this.subscribeToSelf && !Equals(stream.Connection.ConnectionId, _this._session.Connection.ConnectionId)) ) { if (_this._subscriber == null) { _this._subscriber = new OTSubscriber(stream, new SubDelegate(_this)); } } }
public override void DidDropStream(OTSession session, OTStream stream) { Debug.WriteLine("DidDropStream ({0})", stream.StreamId); if (_this._subscriber != null) { Debug.WriteLine("_subscriber.Stream.StreamId ({0})", _this._subscriber.Stream.StreamId); } if (!_this.subscribeToSelf && _this._subscriber != null && Equals(_this._subscriber.Stream.StreamId, stream.StreamId)) { _this._subscriber.Dispose(); _this._subscriber = null; _this.UpdateSubscriber(); } }
public override void StreamDestroyed(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamDestroyed: " + stream.StreamId); this.provider.CleanupSubscriber(); }
public override void StreamDestroyed(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamDestroyed: " + stream.StreamId); InvokeOnMainThread(_this.CleanupSubscriber); }
public override void StreamCreated(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamCreated: " + stream.StreamId); if(_this._subscriber == null) { InvokeOnMainThread (() => _this.DoSubscribe (stream)); } }
public override void StreamDestroyed(OTSession session, OTStream stream) { Debug.WriteLine("SessionDelegate:StreamDestroyed: " + stream.StreamId); InvokeOnMainThread (_this.CleanupSubscriber); }
public override void StreamDestroyed(OTSession session, OTStream stream) { _this.CleanupSubscriber(); }
public override void StreamDestroyed(OTSession session, OTStream stream) { System.Diagnostics.Debug.WriteLine("SessionDelegate:StreamDestroyed: " + stream.StreamId); _this.CleanupSubscriber(); }
public override void StreamCreated(OTSession session, OTStream stream) { if(_this._subscriber == null) { _this.DoSubscribe(stream); } }
public override void StreamDestroyed(OTPublisher publisher, OTStream stream) { //InvokeOnMainThread (() => { _this.CleanupSubscriber(); _this.CleanupPublisher(); //}); }
public override void StreamCreated(OTPublisher publisher, OTStream stream) { if(_this._subscriber == null) { //InvokeOnMainThread (() => _this.DoSubscribe (stream)); _this.DoSubscribe (stream); } }
private void DoSubscribe(OTStream stream) { _subscriberDelegate = new SubscriberDelegate (this); _subscriber = new OTSubscriber(stream, _subscriberDelegate); OTError error; _session.Subscribe(_subscriber, out error); if (error != null) { this.RaiseOnError(error.Description); } }
public override void DidReceiveStream(OTSession session, OTStream stream) { Debug.WriteLine("DidReceiveStream ({0})", stream.StreamId); // See the declaration of subscribeToSelf above if((_this.subscribeToSelf && Equals(stream.Connection.ConnectionId, _this._session.Connection.ConnectionId)) || (!_this.subscribeToSelf && !Equals(stream.Connection.ConnectionId, _this._session.Connection.ConnectionId)) ) { if(_this._subscriber == null) { _this._subscriber = new OTSubscriber(stream, new SubDelegate(_this)); } } }
public override void DidChangeVideoDimensions(OTStream stream, SizeF dimensions) { }
public override void DidChangeVideoDimensions(OTStream stream, SizeF dimensions) { }
public override void DidDropStream(OTSession session, OTStream stream) { Debug.WriteLine("DidDropStream ({0})", stream.StreamId); if(_this._subscriber != null) Debug.WriteLine("_subscriber.Stream.StreamId ({0})", _this._subscriber.Stream.StreamId); if(!_this.subscribeToSelf && _this._subscriber != null && Equals(_this._subscriber.Stream.StreamId, stream.StreamId)) { _this._subscriber.Dispose(); _this._subscriber = null; _this.UpdateSubscriber(); } }
public override void StreamDestroyed(OTSession session, OTStream stream) { _this.CleanupSubscriber(); }