winlin

Merge branch '2.0release' into develop

@@ -117,6 +117,7 @@ cd simple-rtmp-server/trunk @@ -117,6 +117,7 @@ cd simple-rtmp-server/trunk
117 <strong>See also:</strong> 117 <strong>See also:</strong>
118 * Usage: How to delivery RTMP?([CN][v1_CN_SampleRTMP], [EN][v1_EN_SampleRTMP]) 118 * Usage: How to delivery RTMP?([CN][v1_CN_SampleRTMP], [EN][v1_EN_SampleRTMP])
119 * Usage: How to delivery HTTP FLV Live Streaming?([CN][v2_CN_SampleHttpFlv], [EN][v2_EN_SampleHttpFlv]) 119 * Usage: How to delivery HTTP FLV Live Streaming?([CN][v2_CN_SampleHttpFlv], [EN][v2_EN_SampleHttpFlv])
  120 +* Usage: How to delivery HTTP FLV Live Streaming Cluster?([CN][v2_CN_SampleHttpFlvCluster], [EN][v2_EN_SampleHttpFlvCluster])
120 * Usage: How to delivery HLS?([CN][v1_CN_SampleHLS], [EN][v1_EN_SampleHLS]) 121 * Usage: How to delivery HLS?([CN][v1_CN_SampleHLS], [EN][v1_EN_SampleHLS])
121 * Usage: How to delivery HLS for other codec?([CN][v1_CN_SampleTranscode2HLS], [EN][v1_EN_SampleTranscode2HLS]) 122 * Usage: How to delivery HLS for other codec?([CN][v1_CN_SampleTranscode2HLS], [EN][v1_EN_SampleTranscode2HLS])
122 * Usage: How to transode RTMP stream by SRS?([CN][v1_CN_SampleFFMPEG], [EN][v1_EN_SampleFFMPEG]) 123 * Usage: How to transode RTMP stream by SRS?([CN][v1_CN_SampleFFMPEG], [EN][v1_EN_SampleFFMPEG])
@@ -936,6 +937,8 @@ Winlin @@ -936,6 +937,8 @@ Winlin
936 [v2_EN_Streamer2]: https://github.com/simple-rtmp-server/srs/wiki/v2_EN_Streamer#push-http-flv-to-srs 937 [v2_EN_Streamer2]: https://github.com/simple-rtmp-server/srs/wiki/v2_EN_Streamer#push-http-flv-to-srs
937 [v2_CN_SampleHttpFlv]: https://github.com/simple-rtmp-server/srs/wiki/v2_CN_SampleHttpFlv 938 [v2_CN_SampleHttpFlv]: https://github.com/simple-rtmp-server/srs/wiki/v2_CN_SampleHttpFlv
938 [v2_EN_SampleHttpFlv]: https://github.com/simple-rtmp-server/srs/wiki/v2_EN_SampleHttpFlv 939 [v2_EN_SampleHttpFlv]: https://github.com/simple-rtmp-server/srs/wiki/v2_EN_SampleHttpFlv
  940 +[v2_CN_SampleHttpFlvCluster]: https://github.com/simple-rtmp-server/srs/wiki/v2_CN_SampleHttpFlvCluster
  941 +[v2_EN_SampleHttpFlvCluster]: https://github.com/simple-rtmp-server/srs/wiki/v2_EN_SampleHttpFlvCluster
939 942
940 [bug #213]: https://github.com/simple-rtmp-server/srs/issues/213 943 [bug #213]: https://github.com/simple-rtmp-server/srs/issues/213
941 [bug #194]: https://github.com/simple-rtmp-server/srs/issues/194 944 [bug #194]: https://github.com/simple-rtmp-server/srs/issues/194
  1 +# the config for srs to remux rtmp to flv live stream.
  2 +# @see https://github.com/simple-rtmp-server/srs/wiki/v2_CN_DeliveryHttpStream
  3 +# @see full.conf for detail config.
  4 +
  5 +listen 19351;
  6 +max_connections 1000;
  7 +pid objs/srs.flv.19351.pid;
  8 +srs_log_file objs/srs.flv.19351.log;
  9 +http_server {
  10 + enabled on;
  11 + listen 8081;
  12 + dir ./objs/nginx/html;
  13 +}
  14 +vhost __defaultVhost__ {
  15 + mode remote;
  16 + origin 127.0.0.1;
  17 + http_remux {
  18 + enabled on;
  19 + mount [vhost]/[app]/[stream].flv;
  20 + hstrs on;
  21 + }
  22 +}
  1 +# the config for srs to remux rtmp to flv live stream.
  2 +# @see https://github.com/simple-rtmp-server/srs/wiki/v2_CN_DeliveryHttpStream
  3 +# @see full.conf for detail config.
  4 +
  5 +listen 19352;
  6 +max_connections 1000;
  7 +pid objs/srs.flv.19352.pid;
  8 +srs_log_file objs/srs.flv.19352.log;
  9 +http_server {
  10 + enabled on;
  11 + listen 8082;
  12 + dir ./objs/nginx/html;
  13 +}
  14 +vhost __defaultVhost__ {
  15 + mode remote;
  16 + origin 127.0.0.1;
  17 + http_remux {
  18 + enabled on;
  19 + mount [vhost]/[app]/[stream].flv;
  20 + hstrs on;
  21 + }
  22 +}
@@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <sstream> 27 #include <sstream>
  28 +#include <algorithm>
28 using namespace std; 29 using namespace std;
29 30
30 #include <srs_kernel_error.hpp> 31 #include <srs_kernel_error.hpp>