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:
parent
88d4314a3c
commit
ab221fa842
4 changed files with 25 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue