forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add full simulcast support to recordings (lynckia#1127)
- Loading branch information
Showing
11 changed files
with
266 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef ERIZO_SRC_ERIZO_PIPELINE_HANDLERMANAGER_H_ | ||
#define ERIZO_SRC_ERIZO_PIPELINE_HANDLERMANAGER_H_ | ||
|
||
#include "pipeline/Service.h" | ||
|
||
namespace erizo { | ||
|
||
class HandlerManagerListener { | ||
public: | ||
virtual ~HandlerManagerListener() = default; | ||
|
||
virtual void notifyUpdateToHandlers() = 0; | ||
}; | ||
|
||
class HandlerManager : public Service { | ||
public: | ||
explicit HandlerManager(std::weak_ptr<HandlerManagerListener> listener) : listener_{listener} {} | ||
virtual ~HandlerManager() = default; | ||
|
||
void notifyUpdateToHandlers() { | ||
if (auto listener = listener_.lock()) { | ||
listener->notifyUpdateToHandlers(); | ||
} | ||
} | ||
private: | ||
std::weak_ptr<HandlerManagerListener> listener_; | ||
}; | ||
} // namespace erizo | ||
|
||
#endif // ERIZO_SRC_ERIZO_PIPELINE_HANDLERMANAGER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.