-
Notifications
You must be signed in to change notification settings - Fork 19
Add deflect::Observer which can be used to only receive events w/o the need to send images #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…e need to send images
class StreamPrivate; | ||
|
||
/** | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty docstring
adjust documentation in this file a bit, explaining how to use an Observer and replacing "stream" with "observer" where applicable
{ | ||
} | ||
|
||
FrameDispatcher* frameDispatcher; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo we be deleted
deflect/StreamSendWorker.cpp
Outdated
Stream::Future StreamSendWorker::enqueueObserverClose() | ||
{ | ||
return _enqueueRequest( | ||
{[this] { return _send(MESSAGE_TYPE_OBSERVER_QUIT, {}); }}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a separate MESSAGE_TYPE_OBSERVER_QUIT? Couldn't we just use the normal MESSAGE_TYPE_QUIT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't find a satisfying solution to make that work. Now it's clearer having two messages indicating the the source is a observer.
deflect/ServerWorker.cpp
Outdated
if (!_streamId.isEmpty()) | ||
{ | ||
emit removeStreamSource(_streamId, _sourceId); | ||
emit removeObserver(_streamId, _sourceId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look like a bit brute force, maybe remember the stream type and emit just the correct signal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, if the type is remembered, the upper comment could also be resolved. I'll have a look
|
||
cmake_minimum_required(VERSION 3.1 FATAL_ERROR) | ||
project(Deflect VERSION 0.13.1) | ||
project(Deflect VERSION 0.14.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect the split of Stream in Observer + Stream to break the ABI as well, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably yes. Will bump for safety.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last thing I don't know is if we should update the @Version tags in Observer.h, now that they are in a new class. Both updating and keeping them as is seems a bit wrong.
I'm actually wondering what the version tag corresponds to the CMakeLists.txt version. 0.13 == 1.3? But there's a 1.5 version tag in Observer.h as well... |
No description provided.