{"id":45319,"date":"2025-06-24T07:21:01","date_gmt":"2025-06-23T23:21:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/45319.html"},"modified":"2025-06-24T07:21:01","modified_gmt":"2025-06-23T23:21:01","slug":"srssimple-realtime-server-%e5%bc%80%e6%ba%90%e7%9b%b4%e6%92%ad-%e5%8f%8c%e5%bd%95%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/45319.html","title":{"rendered":"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668"},"content":{"rendered":"<h3>&#x1f9ed; \u4e00\u3001SRS \u662f\u4ec0\u4e48&#xff1f;<\/h3>\n<p>SRS&#xff08;Simple Realtime Server&#xff09; \u662f\u4e00\u4e2a\u7eaf C&#043;&#043; \u7f16\u5199\u7684\u9ad8\u6027\u80fd\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668&#xff0c;\u76ee\u6807\u662f\u6253\u9020\u7b80\u5355\u3001\u9ad8\u6548\u3001\u6613\u7528\u3001\u652f\u6301\u591a\u534f\u8bae\u7684\u76f4\u64ad\u670d\u52a1\u7cfb\u7edf\u3002\u81ea 2013 \u5e74\u5f00\u6e90\u4ee5\u6765&#xff0c;\u5df2\u6210\u4e3a\u56fd\u5185\u5916\u5e7f\u6cdb\u4f7f\u7528\u7684 RTMP\/WebRTC \u670d\u52a1\u7aef\u65b9\u6848\u4e4b\u4e00\u3002<\/p>\n<p>\u6838\u5fc3\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>&#x1f3af; \u652f\u6301\u4e3b\u6d41\u76f4\u64ad\u534f\u8bae&#xff1a;RTMP\u3001HTTP-FLV\u3001HLS\u3001WebRTC\u3001SRT\u3001GB28181<\/li>\n<li>\u26a1 \u652f\u6301\u4e9a\u79d2\u7ea7\u5ef6\u8fdf&#xff1a;\u7279\u522b\u662f WebRTC \u548c HTTP-FLV \u6a21\u5f0f\u4e0b<\/li>\n<li>&#x1f30d; \u8de8\u5e73\u53f0\u7f16\u8bd1&#xff1a;\u652f\u6301 Linux\/macOS\/Windows\/ARM<\/li>\n<li>&#x1f4e6; \u6a21\u5757\u5316\u914d\u7f6e&#xff1a;\u652f\u6301\u8fb9\u7f18\u8282\u70b9\u3001\u4e2d\u7ee7\u3001Vhost\u3001\u8f6c\u7801\u3001\u5f55\u5236\u7b49\u6a21\u5757<\/li>\n<li>&#x1f4e1; RESTful API&#xff1a;\u53ef\u7528\u4e8e\u96c6\u7fa4\u63a7\u5236\u3001\u72b6\u6001\u76d1\u63a7\u3001\u52a8\u6001\u63a8\u6d41\u7ba1\u7406<\/li>\n<\/ul>\n<hr \/>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623232059-6859e15bc4194.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>&#x1f9ea; \u4e8c\u3001\u9002\u7528\u573a\u666f\u5206\u6790<\/h3>\n<table>\n<tr>\u5e94\u7528\u573a\u666f\u7279\u6027\u9700\u6c42SRS \u7684\u652f\u6301\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>\u4e92\u52a8\u76f4\u64ad\u8bfe\u5802<\/td>\n<td>\u4f4e\u5ef6\u8fdf\u3001\u6d4f\u89c8\u5668\u76f4\u63a5\u64ad\u653e<\/td>\n<td>WebRTC \/ HTTP-FLV&#xff0c;\u652f\u6301\u6d4f\u89c8\u5668\u64ad\u653e\u65e0\u9700 Flash<\/td>\n<\/tr>\n<tr>\n<td>\u89c6\u9891\u76d1\u63a7\u8f6c\u53d1<\/td>\n<td>RTSP \u62c9\u6d41\u8f6c HTTP-FLV\u3001WebRTC<\/td>\n<td>\u652f\u6301\u62c9\u6d41\u5e76\u8f6c\u5c01\u88c5\u3001\u8f93\u51fa\u4e3a HTTP-FLV \/ WebRTC<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u7aef\u76f4\u64ad\u5e73\u53f0<\/td>\n<td>RTMP \u63a8\u6d41 &#043; \u591a\u534f\u8bae\u64ad\u653e<\/td>\n<td>\u540c\u65f6\u652f\u6301 RTMP\/HLS\/FLV\/WebRTC<\/td>\n<\/tr>\n<tr>\n<td>\u4e91\u5f55\u64ad\u7cfb\u7edf<\/td>\n<td>\u81ea\u52a8\u6309\u65f6\u95f4\/\u6309\u6bb5\u5f55\u5236<\/td>\n<td>DVR \u6a21\u5757\u652f\u6301\u672c\u5730\u5f55\u5236\u548c\u65f6\u95f4\u5207\u5272<\/td>\n<\/tr>\n<tr>\n<td>\u96c6\u7fa4\u5206\u53d1<\/td>\n<td>\u9ad8\u5e76\u53d1\u3001\u8fb9\u7f18\u5206\u53d1\u4f18\u5316<\/td>\n<td>\u652f\u6301\u8fb9\u7f18\u6a21\u5f0f &#043; \u8d1f\u8f7d\u5747\u8861&#xff08;Nginx\/\u81ea\u5b9a\u4e49&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>&#x1f9f1; \u4e09\u3001SRS \u67b6\u6784\u7b80\u56fe\u4e0e\u534f\u8bae\u652f\u6301<\/h3>\n<p>graph LR<br \/>\n  A[\u63a8\u6d41\u5ba2\u6237\u7aef(OBS\/SDK)] &#8211;&gt;|RTMP\/RTC\/SRT| B(SRS Server)<br \/>\n  B &#8211;&gt;|WebRTC| C[\u6d4f\u89c8\u5668\u89c2\u770b]<br \/>\n  B &#8211;&gt;|HTTP-FLV| D[\u4f4e\u5ef6\u8fdf\u64ad\u653e\u5668]<br \/>\n  B &#8211;&gt;|HLS| E[m3u8 \u64ad\u653e\u5668]<br \/>\n  B &#8211;&gt;|SRT\/RTMP Relay| F[\u8fb9\u7f18\/\u8f6c\u53d1\u670d\u52a1]<br \/>\n  G[\u540e\u7aef\u63a7\u5236\u7cfb\u7edf] &#8211;&gt;|API\u8c03\u7528| B<\/p>\n<hr \/>\n<h3>\u2699\ufe0f \u56db\u3001\u5feb\u901f\u90e8\u7f72\u6307\u5357&#xff08;\u4ee5 RTMP &#043; WebRTC \u4e3a\u4f8b&#xff09;<\/h3>\n<h4>1. \u514b\u9686\u5e76\u6784\u5efa<\/h4>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/ossrs\/srs.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> srs\/trunk<br \/>\n.\/configure &#8211;with-http-api &#8211;with-webrtc<br \/>\n<span class=\"token function\">make<\/span><\/p>\n<h4>2. \u914d\u7f6e\u6587\u4ef6&#xff08;conf\/srs.conf \u7cbe\u7b80\u793a\u4f8b&#xff09;<\/h4>\n<p>listen              <span class=\"token number\">1935<\/span><span class=\"token punctuation\">;<\/span><br \/>\nmax_connections     <span class=\"token number\">1000<\/span><span class=\"token punctuation\">;<\/span><br \/>\ndaemon              off<span class=\"token punctuation\">;<\/span><\/p>\n<p>http_api <span class=\"token punctuation\">{<\/span><br \/>\n    enabled         on<span class=\"token punctuation\">;<\/span><br \/>\n    listen          <span class=\"token number\">1985<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nhttp_server <span class=\"token punctuation\">{<\/span><br \/>\n    enabled         on<span class=\"token punctuation\">;<\/span><br \/>\n    listen          <span class=\"token number\">8080<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">dir<\/span>             .\/objs\/nginx\/html<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>vhost __defaultVhost__ <span class=\"token punctuation\">{<\/span><br \/>\n    rtc <span class=\"token punctuation\">{<\/span><br \/>\n        enabled     on<span class=\"token punctuation\">;<\/span><br \/>\n        nat         \u4f60\u7684\u516c\u7f51IP<span class=\"token punctuation\">;<\/span> <span class=\"token comment\"># \u5426\u5219 WebRTC ICE \u5931\u8d25<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    http_remux <span class=\"token punctuation\">{<\/span><br \/>\n        enabled     on<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    hls <span class=\"token punctuation\">{<\/span><br \/>\n        enabled     on<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>3. \u542f\u52a8\u670d\u52a1<\/h4>\n<p>.\/objs\/srs <span class=\"token parameter variable\">-c<\/span> conf\/srs.conf<\/p>\n<hr \/>\n<h3>&#x1f4fa; \u4e94\u3001\u591a\u534f\u8bae\u63a8\u6d41\u4e0e\u64ad\u653e\u5730\u5740\u793a\u4f8b<\/h3>\n<table>\n<tr>\u534f\u8bae\u63a8\u6d41\u5730\u5740\/\u64ad\u653e\u5730\u5740\u5ba2\u6237\u7aef\u652f\u6301<\/tr>\n<tbody>\n<tr>\n<td>RTMP \u63a8\u6d41<\/td>\n<td>rtmp:\/\/&lt;host&gt;\/live\/stream<\/td>\n<td>OBS\u3001FFmpeg<\/td>\n<\/tr>\n<tr>\n<td>RTMP \u64ad\u653e<\/td>\n<td>\u540c\u4e0a<\/td>\n<td>VLC\u3001Flash \u64ad\u653e\u5668<\/td>\n<\/tr>\n<tr>\n<td>HTTP-FLV<\/td>\n<td>http:\/\/&lt;host&gt;:8080\/live\/stream.flv<\/td>\n<td>h5live\u3001flv.js<\/td>\n<\/tr>\n<tr>\n<td>HLS<\/td>\n<td>http:\/\/&lt;host&gt;:8080\/live\/stream.m3u8<\/td>\n<td>video.js<\/td>\n<\/tr>\n<tr>\n<td>WebRTC \u64ad\u653e<\/td>\n<td>webrtc:\/\/&lt;host&gt;\/live\/stream<\/td>\n<td>Chrome\/Firefox<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>&#x1f50d; \u516d\u3001\u6613\u9519\u70b9\u4e0e\u5e38\u89c1\u95ee\u9898\u6c47\u603b<\/h3>\n<h4>\u2757 WebRTC \u76f8\u5173<\/h4>\n<table>\n<tr>\u95ee\u9898\u53ef\u80fd\u539f\u56e0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>ICE \u5931\u8d25 \/ \u8fde\u63a5\u5361\u6b7b<\/td>\n<td>\u6ca1\u6709\u914d\u7f6e\u516c\u7f51 IP<\/td>\n<td>rtc.nat \u8bbe\u7f6e\u4e3a\u670d\u52a1\u5668\u516c\u7f51 IP<\/td>\n<\/tr>\n<tr>\n<td>\u89c6\u9891\u9ed1\u5c4f<\/td>\n<td>\u6ca1\u6709\u7f16\u7801\u6216\u7f16\u7801\u683c\u5f0f\u9519\u8bef<\/td>\n<td>\u786e\u4fdd\u63a8\u6d41\u4f7f\u7528 H.264\/AAC \u7f16\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u6d4f\u89c8\u5668\u62a5\u9519\u672a\u8fde\u63a5\u6210\u529f<\/td>\n<td>WebRTC \u6a21\u5757\u672a\u542f\u7528<\/td>\n<td>\u7f16\u8bd1\u65f6\u52a0\u5165 &#8211;with-webrtc&#xff0c;\u914d\u7f6e\u4e2d\u5f00\u542f rtc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u2757 \u591a\u534f\u8bae\u5171\u5b58\u51b2\u7a81<\/h4>\n<ul>\n<li>\n<p>HTTP-FLV \u4e0e HLS \u5171\u7528\u7aef\u53e3\u65f6\u6ce8\u610f URL \u8def\u5f84\u533a\u5206<\/p>\n<\/li>\n<li>\n<p>HTTP API\u3001HTTP Server\u3001WebRTC HTTP Hook \u7b49\u7aef\u53e3\u4e0d\u53ef\u91cd\u590d<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u6587\u4ef6\u4e2d\u7aef\u53e3\u590d\u7528\u793a\u4f8b&#xff08;\u4ec5\u4f9b\u53c2\u8003&#xff09;&#xff1a;<\/p>\n<p> http_api <span class=\"token punctuation\">{<\/span><br \/>\n  enabled on<span class=\"token punctuation\">;<\/span><br \/>\n  listen <span class=\"token number\">1985<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nhttp_server <span class=\"token punctuation\">{<\/span><br \/>\n  enabled on<span class=\"token punctuation\">;<\/span><br \/>\n  listen <span class=\"token number\">8080<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<\/ul>\n<hr \/>\n<h4>\u2757 \u63a8\u6d41\u9274\u6743\/\u9650\u5236 IP<\/h4>\n<p>\u5f00\u542f\u9650\u5236\u540e&#xff0c;\u9519\u8bef\u914d\u7f6e\u5c06\u5bfc\u81f4\u63a8\u6d41\u5931\u8d25&#xff1a;<\/p>\n<p>vhost __defaultVhost__ <span class=\"token punctuation\">{<\/span><br \/>\n  security <span class=\"token punctuation\">{<\/span><br \/>\n    enabled on<span class=\"token punctuation\">;<\/span><br \/>\n    deny publish all<span class=\"token punctuation\">;<\/span><br \/>\n    allow publish <span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u53ef\u7ed3\u5408 Nginx \u9274\u6743\u6a21\u5757&#xff0c;\u6216 RESTful API \u63a7\u5236\u6743\u9650\u3002<\/p>\n<hr \/>\n<h3>&#x1f4e1; \u4e03\u3001\u96c6\u7fa4\u90e8\u7f72\u5efa\u8bae<\/h3>\n<p>\u5bf9\u4e8e\u9ad8\u5e76\u53d1\u6216\u8de8\u5730\u57df\u76f4\u64ad\u670d\u52a1&#xff0c;SRS \u652f\u6301\u6784\u5efa\u8fb9\u7f18\u96c6\u7fa4\u67b6\u6784&#xff1a;<\/p>\n<p>  #mermaid-svg-62YoOgJ4MDz5MUYt {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .error-icon{fill:#552222;}#mermaid-svg-62YoOgJ4MDz5MUYt .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-62YoOgJ4MDz5MUYt .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-62YoOgJ4MDz5MUYt .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-62YoOgJ4MDz5MUYt .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-62YoOgJ4MDz5MUYt .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-62YoOgJ4MDz5MUYt .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-62YoOgJ4MDz5MUYt .marker{fill:#333333;stroke:#333333;}#mermaid-svg-62YoOgJ4MDz5MUYt .marker.cross{stroke:#333333;}#mermaid-svg-62YoOgJ4MDz5MUYt svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-62YoOgJ4MDz5MUYt .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .cluster-label text{fill:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .cluster-label span{color:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .label text,#mermaid-svg-62YoOgJ4MDz5MUYt span{fill:#333;color:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .node rect,#mermaid-svg-62YoOgJ4MDz5MUYt .node circle,#mermaid-svg-62YoOgJ4MDz5MUYt .node ellipse,#mermaid-svg-62YoOgJ4MDz5MUYt .node polygon,#mermaid-svg-62YoOgJ4MDz5MUYt .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-62YoOgJ4MDz5MUYt .node .label{text-align:center;}#mermaid-svg-62YoOgJ4MDz5MUYt .node.clickable{cursor:pointer;}#mermaid-svg-62YoOgJ4MDz5MUYt .arrowheadPath{fill:#333333;}#mermaid-svg-62YoOgJ4MDz5MUYt .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-62YoOgJ4MDz5MUYt .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-62YoOgJ4MDz5MUYt .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-62YoOgJ4MDz5MUYt .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-62YoOgJ4MDz5MUYt .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-62YoOgJ4MDz5MUYt .cluster text{fill:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt .cluster span{color:#333;}#mermaid-svg-62YoOgJ4MDz5MUYt div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-62YoOgJ4MDz5MUYt :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;} <\/p>\n<p>         <span id=\"L-L-U1-M1\" class=\"edgeLabel L-LS-U1&#039; L-LE-M1\"><\/span> <\/p>\n<p>         <span id=\"L-L-M1-E1\" class=\"edgeLabel L-LS-M1&#039; L-LE-E1\">\u4e3b\u8282\u70b9\u56de\u6e90<\/span> <\/p>\n<p>         <span id=\"L-L-M1-E2\" class=\"edgeLabel L-LS-M1&#039; L-LE-E2\">\u4e3b\u8282\u70b9\u56de\u6e90<\/span> <\/p>\n<p>         <span id=\"L-L-Viewer1-E1\" class=\"edgeLabel L-LS-Viewer1&#039; L-LE-E1\"><\/span> <\/p>\n<p>         <span id=\"L-L-Viewer2-E2\" class=\"edgeLabel L-LS-Viewer2&#039; L-LE-E2\"><\/span> <\/p>\n<p>           \u63a8\u6d41\u5ba2\u6237\u7aef <\/p>\n<p>           SRS \u4e3b\u8282\u70b9 <\/p>\n<p>           SRS \u8fb9\u7f18\u8282\u70b91 <\/p>\n<p>           SRS \u8fb9\u7f18\u8282\u70b92 <\/p>\n<p>           Viewer1 <\/p>\n<p>           Viewer2 <\/p>\n<ul>\n<li>\u4e3b\u8282\u70b9\u96c6\u4e2d\u63a5\u6536\u63a8\u6d41<\/li>\n<li>\u8fb9\u7f18\u8282\u70b9\u90e8\u7f72\u5728\u9760\u8fd1\u7528\u6237\u7684\u533a\u57df&#xff0c;\u5b9e\u73b0\u5c31\u8fd1\u64ad\u653e\u3001\u4f4e\u5ef6\u8fdf\u8bbf\u95ee<\/li>\n<li>\u81ea\u5b9a\u4e49\u8c03\u5ea6\u7b56\u7565&#xff1a;\u57fa\u4e8e DNS\u3001\u8d1f\u8f7d\u5747\u8861\u5668\u6216\u7f51\u5173\u53cd\u5411\u4ee3\u7406<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f9f0; \u516b\u3001\u914d\u5957\u5de5\u5177\u4e0e\u751f\u6001<\/h3>\n<table>\n<tr>\u5de5\u5177 \/ \u63d2\u4ef6\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>srs-benchmark<\/td>\n<td>\u538b\u529b\u6d4b\u8bd5\u5de5\u5177&#xff0c;\u8bc4\u4f30\u63a8\u6d41\/\u64ad\u653e\u80fd\u529b<\/td>\n<\/tr>\n<tr>\n<td>flv.js<\/td>\n<td>H5 HTTP-FLV \u64ad\u653e\u5668<\/td>\n<\/tr>\n<tr>\n<td>srs-player<\/td>\n<td>SRS \u5b98\u65b9 WebRTC \u64ad\u653e\u6d4b\u8bd5\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>OBS Studio<\/td>\n<td>\u4e3b\u6d41\u5f00\u6e90\u63a8\u6d41\u8f6f\u4ef6&#xff0c;\u652f\u6301 RTMP<\/td>\n<\/tr>\n<tr>\n<td>ffmpeg<\/td>\n<td>\u7f16\u89e3\u7801\u3001\u8f6c\u7801\u3001\u591a\u534f\u8bae\u63a8\u6d41<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u2705 \u4e5d\u3001\u603b\u7ed3&#xff1a;SRS \u662f\u5426\u9002\u5408\u4f60&#xff1f;<\/h3>\n<table>\n<tr>\u8003\u5bdf\u7ef4\u5ea6SRS \u652f\u6301\u60c5\u51b5<\/tr>\n<tbody>\n<tr>\n<td>\u591a\u534f\u8bae\u517c\u5bb9<\/td>\n<td>\u2705 \u5168\u9762\u652f\u6301 RTMP \/ HLS \/ WebRTC \u7b49<\/td>\n<\/tr>\n<tr>\n<td>\u4f4e\u5ef6\u8fdf\u6027\u80fd<\/td>\n<td>\u2705 WebRTC\/FLV \u5ef6\u8fdf\u5728 300ms \u5185<\/td>\n<\/tr>\n<tr>\n<td>\u90e8\u7f72\u590d\u6742\u5ea6<\/td>\n<td>&#x1f7e1; \u5355\u673a\u7b80\u5355&#xff0c;\u96c6\u7fa4\u9700\u914d\u7f6e\u8f83\u591a<\/td>\n<\/tr>\n<tr>\n<td>\u793e\u533a\u6d3b\u8dc3\u5ea6<\/td>\n<td>\u2705 GitHub \u6d3b\u8dc3&#xff0c;\u6587\u6863\u5b8c\u5584<\/td>\n<\/tr>\n<tr>\n<td>\u4f01\u4e1a\u7ea7\u80fd\u529b<\/td>\n<td>\u2705 \u652f\u6301\u5f55\u5236\u3001\u9274\u6743\u3001API\u3001\u76d1\u63a7\u7b49<\/td>\n<\/tr>\n<tr>\n<td>\u89c6\u9891\u8f6c\u7801<\/td>\n<td>\u2705 \u5185\u5efa\u8f6c\u7801&#xff08;\u57fa\u4e8e ffmpeg&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>SRS \u662f\u4e00\u4e2a\u7075\u6d3b\u3001\u5f3a\u5927\u3001\u90e8\u7f72\u6210\u672c\u4f4e\u7684\u76f4\u64ad\u6d41\u5a92\u4f53\u670d\u52a1\u5668&#xff0c;\u5c24\u5176\u9002\u5408\u4e2d\u5c0f\u578b\u76f4\u64ad\u5e73\u53f0\u3001\u4f4e\u5ef6\u8fdf\u89c6\u9891\u670d\u52a1\u3001\u81ea\u5efa\u79c1\u6709\u6d41\u5a92\u4f53\u7cfb\u7edf\u3002<\/p>\n<hr \/>\n<h3>&#x1f4da; \u9644\u5f55\u8d44\u6599\u63a8\u8350<\/h3>\n<ul>\n<li>SRS \u5b98\u65b9\u6587\u6863&#xff1a;https:\/\/ossrs.io\/lts\/zh-cn\/docs<\/li>\n<li>SRS WebRTC \u6559\u7a0b&#xff1a;https:\/\/ossrs.io\/lts\/zh-cn\/docs\/v4\/doc\/webrtc<\/li>\n<li>SRS \u6027\u80fd\u8c03\u4f18\u4e0e\u538b\u6d4b\u65b9\u6848&#xff1a;https:\/\/ossrs.io\/lts\/zh-cn\/docs\/v4\/doc\/benchmark<\/li>\n<\/ul>\n<hr \/>\n<h3>\u5b9e\u7528\u5c0f\u5de5\u5177<\/h3>\n<p>App Store \u622a\u56fe\u751f\u6210\u5668\u3001\u5e94\u7528\u56fe\u6807\u751f\u6210\u5668 \u3001\u5728\u7ebf\u56fe\u7247\u538b\u7f29\u548c Chrome\u63d2\u4ef6-\u5f3a\u5236\u5f00\u542f\u590d\u5236-\u62a4\u773c\u6a21\u5f0f-\u7f51\u9875\u4e71\u7801\u8bbe\u7f6e\u7f16\u7801 \u4e56\u732b\u8bb0\u8d26&#xff0c;AI\u667a\u80fd\u5206\u7c7b\u7684\u804a\u5929\u8bb0\u8d26\u3002<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb840\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf9\u6b21\u3002SRS\uff08Simple Realtime Server\uff09 \u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301 RTMP\u3001WebRTC\u3001HLS \u7b49\u4e3b\u6d41\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u76f4\u64ad\u3001\u76d1\u63a7\u3001\u5f55\u64ad\u7b49\u573a\u666f\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u4e9a\u79d2\u7ea7\u5ef6\u8fdf\u3001\u8de8\u5e73\u53f0\u652f\u6301\u53ca\u6a21\u5757\u5316\u914d\u7f6e\u3002\u90e8\u7f72\u7b80\u5355\uff0c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u542f\u7528\u591a\u534f\u8bae\u670d\u52a1\u3002\u5e38\u89c1\u95ee\u9898\u5982 WebRTC \u8fde\u63a5\u5931\u8d25\u3001\u591a\u534f\u8bae\u51b2\u7a81\u7b49\u53ef\u901a\u8fc7\u8c03\u6574\u914d\u7f6e\u89e3\u51b3\u3002SRS \u9002\u5408\u4e2d\u5c0f\u578b\u76f4\u64ad\u5e73\u53f0\u53ca\u81ea\u5efa\u6d41\u5a92\u4f53\u7cfb\u7edf\uff0c\u63d0\u4f9b\u5b8c\u5584\u7684\u6587\u6863\u548c\u6d3b\u8dc3\u793e\u533a\u652f\u6301\u3002\u914d\u5957\u5de5\u5177\u5982 srs-benchmark \u548c flv.js \u53ef\u8fdb\u4e00\u6b65\u6269\u5c55\u529f\u80fd\u3002<\/p>\n","protected":false},"author":2,"featured_media":45318,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227,43,44],"topic":[],"class_list":["post-45319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-227","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/45319.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb840\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf9\u6b21\u3002SRS\uff08Simple Realtime Server\uff09 \u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301 RTMP\u3001WebRTC\u3001HLS \u7b49\u4e3b\u6d41\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u76f4\u64ad\u3001\u76d1\u63a7\u3001\u5f55\u64ad\u7b49\u573a\u666f\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u4e9a\u79d2\u7ea7\u5ef6\u8fdf\u3001\u8de8\u5e73\u53f0\u652f\u6301\u53ca\u6a21\u5757\u5316\u914d\u7f6e\u3002\u90e8\u7f72\u7b80\u5355\uff0c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u542f\u7528\u591a\u534f\u8bae\u670d\u52a1\u3002\u5e38\u89c1\u95ee\u9898\u5982 WebRTC \u8fde\u63a5\u5931\u8d25\u3001\u591a\u534f\u8bae\u51b2\u7a81\u7b49\u53ef\u901a\u8fc7\u8c03\u6574\u914d\u7f6e\u89e3\u51b3\u3002SRS \u9002\u5408\u4e2d\u5c0f\u578b\u76f4\u64ad\u5e73\u53f0\u53ca\u81ea\u5efa\u6d41\u5a92\u4f53\u7cfb\u7edf\uff0c\u63d0\u4f9b\u5b8c\u5584\u7684\u6587\u6863\u548c\u6d3b\u8dc3\u793e\u533a\u652f\u6301\u3002\u914d\u5957\u5de5\u5177\u5982 srs-benchmark \u548c flv.js \u53ef\u8fdb\u4e00\u6b65\u6269\u5c55\u529f\u80fd\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/45319.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-23T23:21:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623232059-6859e15bc4194.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45319.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/45319.html\",\"name\":\"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-23T23:21:01+00:00\",\"dateModified\":\"2025-06-23T23:21:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/45319.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/45319.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45319.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/45319.html","og_locale":"zh_CN","og_type":"article","og_title":"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb840\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf9\u6b21\u3002SRS\uff08Simple Realtime Server\uff09 \u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301 RTMP\u3001WebRTC\u3001HLS \u7b49\u4e3b\u6d41\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u76f4\u64ad\u3001\u76d1\u63a7\u3001\u5f55\u64ad\u7b49\u573a\u666f\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u4e9a\u79d2\u7ea7\u5ef6\u8fdf\u3001\u8de8\u5e73\u53f0\u652f\u6301\u53ca\u6a21\u5757\u5316\u914d\u7f6e\u3002\u90e8\u7f72\u7b80\u5355\uff0c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u542f\u7528\u591a\u534f\u8bae\u670d\u52a1\u3002\u5e38\u89c1\u95ee\u9898\u5982 WebRTC \u8fde\u63a5\u5931\u8d25\u3001\u591a\u534f\u8bae\u51b2\u7a81\u7b49\u53ef\u901a\u8fc7\u8c03\u6574\u914d\u7f6e\u89e3\u51b3\u3002SRS \u9002\u5408\u4e2d\u5c0f\u578b\u76f4\u64ad\u5e73\u53f0\u53ca\u81ea\u5efa\u6d41\u5a92\u4f53\u7cfb\u7edf\uff0c\u63d0\u4f9b\u5b8c\u5584\u7684\u6587\u6863\u548c\u6d3b\u8dc3\u793e\u533a\u652f\u6301\u3002\u914d\u5957\u5de5\u5177\u5982 srs-benchmark \u548c flv.js \u53ef\u8fdb\u4e00\u6b65\u6269\u5c55\u529f\u80fd\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/45319.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-23T23:21:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250623232059-6859e15bc4194.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/45319.html","url":"https:\/\/www.wsisp.com\/helps\/45319.html","name":"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-23T23:21:01+00:00","dateModified":"2025-06-23T23:21:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/45319.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/45319.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/45319.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"SRS(Simple Realtime Server) \u5f00\u6e90\u76f4\u64ad\/\u53cc\u5f55\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=45319"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45319\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/45318"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=45319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=45319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=45319"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=45319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}