Exemple #1
0
            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);
                }
            }
Exemple #2
0
            public override void StreamCreated(OTPublisher publisher, OTStream stream)
            {
                System.Diagnostics.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 (_this._subscriber == null && _this._subscribeToSelf)
                {
                    _this.DoSubscribe(stream);
                }
            }