mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
增加获取媒体流播放器列表功能
This commit is contained in:
@@ -234,6 +234,8 @@ void SrtTransportImp::doPlay() {
|
||||
}
|
||||
strong_self->onShutdown(SockException(Err_shutdown));
|
||||
});
|
||||
weak_ptr<Session> weak_session = strong_self->getSession();
|
||||
strong_self->_ts_reader->setGetInfoCB([weak_session]() { return weak_session.lock(); });
|
||||
strong_self->_ts_reader->setReadCB([weak_self](const TSMediaSource::RingDataType &ts_list) {
|
||||
auto strong_self = weak_self.lock();
|
||||
if (!strong_self) {
|
||||
|
||||
Reference in New Issue
Block a user