正在显示
2 个修改的文件
包含
11 行增加
和
0 行删除
@@ -4,5 +4,14 @@ | @@ -4,5 +4,14 @@ | ||
4 | listen 1935; | 4 | listen 1935; |
5 | srs_log_tank file; | 5 | srs_log_tank file; |
6 | srs_log_file ./objs/srs.log; | 6 | srs_log_file ./objs/srs.log; |
7 | +http_api { | ||
8 | + enabled on; | ||
9 | + listen 1985; | ||
10 | +} | ||
11 | +http_stream { | ||
12 | + enabled on; | ||
13 | + listen 8080; | ||
14 | + dir ./objs/nginx/html; | ||
15 | +} | ||
7 | vhost __defaultVhost__ { | 16 | vhost __defaultVhost__ { |
8 | } | 17 | } |
@@ -675,6 +675,8 @@ int SrsRtmpConn::process_play_control_msg(SrsConsumer* consumer, SrsCommonMessag | @@ -675,6 +675,8 @@ int SrsRtmpConn::process_play_control_msg(SrsConsumer* consumer, SrsCommonMessag | ||
675 | } | 675 | } |
676 | srs_info("decode the amf0/amf3 command packet success."); | 676 | srs_info("decode the amf0/amf3 command packet success."); |
677 | 677 | ||
678 | + // for jwplayer/flowplayer, which send close as pause message. | ||
679 | + // @see https://github.com/winlinvip/simple-rtmp-server/issues/6 | ||
678 | SrsCloseStreamPacket* close = dynamic_cast<SrsCloseStreamPacket*>(msg->get_packet()); | 680 | SrsCloseStreamPacket* close = dynamic_cast<SrsCloseStreamPacket*>(msg->get_packet()); |
679 | if (close) { | 681 | if (close) { |
680 | ret = ERROR_CONTROL_RTMP_CLOSE; | 682 | ret = ERROR_CONTROL_RTMP_CLOSE; |
-
请 注册 或 登录 后发表评论