winlin

add http server/api to srs.conf. add comments for bug #6.

@@ -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;