System.Collections.Generic.List.Add(nuint)

Here are the examples of the csharp api System.Collections.Generic.List.Add(nuint) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

19 View Source File : AgoraServiceImplementation.cs
License : MIT License
Project Creator : AgoraIO-Community

public virtual void StartSession(string sessionId, string agoraAPI, string token, VideoAgoraProfile profile = VideoAgoraProfile.Portrait360P, bool swapWidthAndHeight = false, bool webSdkInteroperability = false)
        {
            _knownStreams.Add(_myId);
            _agoraDelegate = new AgoraRtcDelegate(this);
            _agoraEngine = AgoraRtcEngineKit.SharedEngineWithAppIdAndDelegate(agoraAPI, _agoraDelegate);
            _agoraEngine.EnableWebSdkInteroperability(webSdkInteroperability);
            _agoraEngine.SetChannelProfile(ChannelProfile.Communication);
            _agoraEngine.EnableLocalVideo(true);
            _agoraEngine.SwitchCamera();
            _agoraEngine.EnableVideo();
            _agoraEngine.SetVideoProfile(GetVideoProfile(profile), swapWidthAndHeight);
            // if you do not specify the uid, we will generate the uid for you
            _agoraEngine.JoinChannelByToken(token, sessionId, null, 0, JoiningCompleted);
        }

19 View Source File : AgoraServiceImplementation.cs
License : MIT License
Project Creator : AgoraIO-Community

public virtual void FirstRemoteVideoDecodedOfUid(AgoraRtcEngineKit engine, nuint uid, CoreGraphics.CGSize size, nint elapsed)
        {
            var id = (uint)uid;
            _knownStreams.Add(id);
            if (!_containers.Any(a => a.StreamUID == id))
            {
                if (_containers.Any(a => a.StreamUID == AgoraService.UnknownRemoteStreamId))
                {
                    var viewHolder = _containers.First(a => a.StreamUID == AgoraService.UnknownRemoteStreamId);
                    viewHolder.StreamUID = id;
                    viewHolder.VideoView.IsOffline = false;
                }
                else
                {
                    OnNewStream(id, (int)size.Width, (int)size.Height);
                }
            }
        }

19 View Source File : AgoraServiceImplementation.cs
License : MIT License
Project Creator : AgoraIO-Community

public virtual void StartSession(string sessionId, string agoraAPI, string token, VideoAgoraProfile profile = VideoAgoraProfile.Portrait360P, bool swapWidthAndHeight = false, bool webSdkInteroperability = false)
        {
            _knownStreams.Add(_myId);
            _agoraDelegate = new AgoraRtcDelegate(this);
            _agoraEngine = AgoraRtcEngineKit.SharedEngineWithAppId(agoraAPI, _agoraDelegate);
            _agoraEngine.EnableWebSdkInteroperability(webSdkInteroperability);
            //_agoraEngine.SetChannelProfile(ChannelProfile.Communication);
            _agoraEngine.EnableLocalVideo(true);
            //_agoraEngine.SwitchCamera();
            _agoraEngine.EnableVideo();
            _agoraEngine.SetVideoProfile(GetVideoProfile(profile), swapWidthAndHeight);
            //_agoraEngine.SetVideoProfile(VideoProfile.Portrait360P, false);
            // if you do not specify the uid, we will generate the uid for you
            _agoraEngine.JoinChannelByToken(token, sessionId, null, 0, JoiningCompleted);
        }

19 View Source File : AgoraServiceImplementation.cs
License : MIT License
Project Creator : DreamTeamMobile

public virtual void FirstRemoteVideoDecodedOfUid(AgoraRtcEngineKit engine, nuint uid, CoreGraphics.CGSize size, nint elapsed)
        {
            var id = (uint)uid;
            _knownStreams.Add(id);
            if (!_containers.Any(a => a.StreamUID == id))
            {
                if (_containers.Any(a => a.StreamUID == Consts.UnknownRemoteStreamId))
                {
                    var viewHolder = _containers.First(a => a.StreamUID == Consts.UnknownRemoteStreamId);
                    viewHolder.StreamUID = id;
                    viewHolder.VideoView.IsOffline = false;
                }
                else
                {
                    OnNewStream(id, (int)size.Width, (int)size.Height);
                }
            }
        }