mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-23 09:22:21 +08:00
增加获取媒体流播放器列表功能
This commit is contained in:
@@ -836,6 +836,9 @@ void RtspSession::handleReq_Play(const Parser &parser) {
|
||||
if (!_play_reader && _rtp_type != Rtsp::RTP_MULTICAST) {
|
||||
weak_ptr<RtspSession> weakSelf = dynamic_pointer_cast<RtspSession>(shared_from_this());
|
||||
_play_reader = play_src->getRing()->attach(getPoller(), useGOP);
|
||||
|
||||
_play_reader->setGetInfoCB([weakSelf]() { return weakSelf.lock(); });
|
||||
|
||||
_play_reader->setDetachCB([weakSelf]() {
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if (!strongSelf) {
|
||||
|
||||
Reference in New Issue
Block a user