Exemplo n.º 1
0
        public void Start(ConnectionParameters connectionParameters)
        {
            if (_rawFramesSource != null)
            {
                return;
            }

            _rawFramesSource = new RawFramesSource(connectionParameters);
            _rawFramesSource.ConnectionStatusChanged += ConnectionStatusChanged;

            _realtimeVideoSource.SetRawFramesSource(_rawFramesSource);

            _rawFramesSource.Start();
        }
Exemplo n.º 2
0
        public void Start(ConnectionParameters connectionParameters)
        {
            if (_rawFramesSource != null)
            {
                return;
            }

            _yoloWrapper             = new YoloWrapper();
            _yoloWrapper.ObjectsOut += YoloWrapper_ObjectsOut;

            _rawFramesSource = new RawFramesSource(connectionParameters);
            _rawFramesSource.ConnectionStatusChanged += ConnectionStatusChanged;

            _realtimeVideoSource.SetRawFramesSource(_rawFramesSource);
            _realtimeAudioSource.SetRawFramesSource(_rawFramesSource);

            _realtimeVideoSource.FrameReceived += OnFrameReceived;

            _rawFramesSource.Start();
        }