mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
fix #49, open the sample access by default.
This commit is contained in:
parent
2554836940
commit
8c493e9896
1 changed files with 6 additions and 0 deletions
|
@ -1086,6 +1086,12 @@ int SrsRtmpServer::start_play(int stream_id)
|
||||||
// |RtmpSampleAccess(false, false)
|
// |RtmpSampleAccess(false, false)
|
||||||
if (true) {
|
if (true) {
|
||||||
SrsSampleAccessPacket* pkt = new SrsSampleAccessPacket();
|
SrsSampleAccessPacket* pkt = new SrsSampleAccessPacket();
|
||||||
|
|
||||||
|
// allow audio/video sample.
|
||||||
|
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/49
|
||||||
|
pkt->audio_sample_access = true;
|
||||||
|
pkt->video_sample_access = true;
|
||||||
|
|
||||||
if ((ret = protocol->send_and_free_packet(pkt, stream_id)) != ERROR_SUCCESS) {
|
if ((ret = protocol->send_and_free_packet(pkt, stream_id)) != ERROR_SUCCESS) {
|
||||||
srs_error("send |RtmpSampleAccess(false, false) message failed. ret=%d", ret);
|
srs_error("send |RtmpSampleAccess(false, false) message failed. ret=%d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue