mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 06:42:22 +08:00
实现媒体源pause/speed接口:#1129
This commit is contained in:
@@ -452,6 +452,7 @@ void RtspPusher::sendRecord() {
|
||||
throw std::runtime_error("the media source was released");
|
||||
}
|
||||
|
||||
src->pause(false);
|
||||
_rtsp_reader = src->getRing()->attach(getPoller());
|
||||
weak_ptr<RtspPusher> weak_self = dynamic_pointer_cast<RtspPusher>(shared_from_this());
|
||||
_rtsp_reader->setReadCB([weak_self](const RtspMediaSource::RingDataType &pkt) {
|
||||
|
||||
Reference in New Issue
Block a user