|
@@ -20,12 +20,12 @@ namespace rtc {
|
|
/// Responds to PLI and FIR messages sent by the receiver. The sender should respond to these
|
|
/// Responds to PLI and FIR messages sent by the receiver. The sender should respond to these
|
|
/// messages by sending an intra.
|
|
/// messages by sending an intra.
|
|
class RTC_CPP_EXPORT PliHandler final : public MediaHandlerElement {
|
|
class RTC_CPP_EXPORT PliHandler final : public MediaHandlerElement {
|
|
- std::function<void(void)> mOnPli;
|
|
|
|
|
|
+ rtc::synchronized_callback<> mOnPli;
|
|
|
|
|
|
public:
|
|
public:
|
|
/// Constructs the PLIResponder object to notify whenever a new intra frame is requested
|
|
/// Constructs the PLIResponder object to notify whenever a new intra frame is requested
|
|
/// @param onPli The callback that gets called whenever an intra frame is requested by the receiver
|
|
/// @param onPli The callback that gets called whenever an intra frame is requested by the receiver
|
|
- PliHandler(rtc::synchronized_callback<> onPli);
|
|
|
|
|
|
+ PliHandler(std::function<void(void)> onPli);
|
|
ChainedIncomingControlProduct processIncomingControlMessage(message_ptr) override;
|
|
ChainedIncomingControlProduct processIncomingControlMessage(message_ptr) override;
|
|
};
|
|
};
|
|
|
|
|