推流结束时,发送eof控制信令给rtmp播放器 (#2711 #2723)

This commit is contained in:
夏楚 2023-08-05 09:26:52 +08:00 committed by GitHub
parent ff225114ec
commit 98a3b8ab91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,6 +327,7 @@ void RtmpSession::sendPlayResponse(const string &err, const RtmpMediaSource::Ptr
if (!strong_self) {
return;
}
strong_self->sendUserControl(CONTROL_STREAM_EOF/*or CONTROL_STREAM_DRY ?*/, STREAM_MEDIA);
strong_self->shutdown(SockException(Err_shutdown,"rtmp ring buffer detached"));
});
src->pause(false);