public void Start(ConnectionParameters connectionParameters) { if (_rawFramesSource != null) { return; } _rawFramesSource = new RawFramesSource(connectionParameters); _rawFramesSource.ConnectionStatusChanged += ConnectionStatusChanged; _realtimeVideoSource.SetRawFramesSource(_rawFramesSource); _rawFramesSource.Start(); }
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(); }