1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Add callback for all consumers done

This commit is contained in:
winlin 2020-08-17 20:08:11 +08:00
parent 88d4314a3c
commit ab221fa842
4 changed files with 25 additions and 0 deletions

View file

@ -129,7 +129,10 @@ public:
ISrsRtcPublishStream();
virtual ~ISrsRtcPublishStream();
public:
// Request keyframe(PLI) from publisher, for fresh consumer.
virtual void request_keyframe(uint32_t ssrc) = 0;
// Notify publisher that all consumers is finished.
virtual void on_consumers_finished() = 0;
};
// A Source is a stream, to publish and to play with, binding to SrsRtcPublishStream and SrsRtcPlayStream.