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