Exemplo n.º 1
0
        IParticipantListener participantListener()
        {
            return(new ParticipantListener {
                VideoTrackAddedHandler = (conversation, participant, videoTrack) => {
                    Android.Util.Log.Info(TAG, "onVideoTrackAdded " + participant.Identity);
                    conversationStatusTextView.Text = "onVideoTrackAdded " + participant.Identity;

                    // Remote participant
                    participantVideoRenderer = new VideoViewRenderer(this, participantContainer);
                    participantVideoRenderer.SetObserver(new VideoRendererObserver {
                        FirstFrameHandler = () => {
                            Android.Util.Log.Info(TAG, "Participant onFirstFrame");
                        },
                        FrameDimensionsChangedHandler = (width, height, i) => {
                            Android.Util.Log.Info(TAG, "Participant onFrameDimensionsChanged " + width + " " + height);
                        }
                    });
                    videoTrack.AddRenderer(participantVideoRenderer);
                }
            });
        }