{"id":110095,"date":"2026-09-25T22:16:54","date_gmt":"2026-09-25T14:16:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110095.html"},"modified":"2026-09-25T22:16:54","modified_gmt":"2026-09-25T14:16:54","slug":"monibuca-%e7%9a%84-rtmp-%e7%89%b9%e5%bf%ab%e4%b8%93%e5%88%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110095.html","title":{"rendered":"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217"},"content":{"rendered":"<h3>\u5e8f&#xff1a;\u4e00\u6761\u6d41\u5a92\u4f53\u7684\u4e1d\u7ef8\u4e4b\u8def<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u7684\u4e16\u754c\u91cc&#xff0c;RTMP \u5c31\u50cf\u4e00\u6761\u53e4\u8001\u7684\u4e1d\u7ef8\u4e4b\u8def\u2014\u2014\u6570\u636e\u4ece\u8fdc\u65b9\u8dcb\u6d89\u800c\u6765&#xff0c;\u7a7f\u8d8a\u534f\u8bae\u7684\u91cd\u91cd\u5173\u9698&#xff0c;\u6700\u7ec8\u62b5\u8fbe\u76ee\u7684\u5730\u3002\u800c\u4eca\u5929&#xff0c;\u6211\u4eec\u8981\u8ddf\u968f Monibuca v5\u200b \u7684\u811a\u6b65&#xff0c;\u770b\u770b\u5b83\u662f\u5982\u4f55\u7528 Go \u8bed\u8a00\u6253\u9020\u8fd9\u6761&#034;RTMP \u7279\u5feb\u4e13\u5217&#034;\u7684\u3002<\/p>\n<h3>\u7b2c\u4e00&#xff1a;\u84dd\u56fe\u4e0a\u7684\u96f6\u4ef6<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6545\u4e8b\u8981\u4ece\u4e00\u4e2a\u53eb package rtmp \u7684\u5730\u65b9\u8bf4\u8d77\u3002\u8fd9\u91cc\u4f4f\u7740\u51e0\u4e2a\u6838\u5fc3\u89d2\u8272&#xff1a;<\/p>\n<table>\n<tr>\n<p>\u89d2\u8272<\/p>\n<p>\u8eab\u4efd<\/p>\n<p>\u804c\u8d23<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>Client<\/p>\n<\/td>\n<td>\n<p>\u5168\u80fd\u901a\u4fe1\u5175<\/p>\n<\/td>\n<td>\n<p>\u8d1f\u8d23\u8fde\u63a5\u3001\u63e1\u624b\u3001\u6536\u53d1\u6d88\u606f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Puller<\/p>\n<\/td>\n<td>\n<p>\u62c9\u6d41\u7279\u5de5<\/p>\n<\/td>\n<td>\n<p>\u4ece\u8fdc\u7a0b RTMP \u670d\u52a1\u5668\u62c9\u53d6\u97f3\u89c6\u9891\u6d41<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pusher<\/p>\n<\/td>\n<td>\n<p>\u63a8\u6d41\u4f7f\u8005<\/p>\n<\/td>\n<td>\n<p>\u5c06\u672c\u5730\u6d41\u8f6c\u63a8\u5230\u8fdc\u7a0b RTMP \u670d\u52a1\u5668<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>NetStream<\/p>\n<\/td>\n<td>\n<p>\u5e95\u5c42\u5f15\u64ce<\/p>\n<\/td>\n<td>\n<p>\u5904\u7406 RTMP \u5757&#xff08;chunk&#xff09;\u548c AMF \u7f16\u89e3\u7801<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5b83\u4eec\u90fd\u85cf\u5728 m7s.live\/v5 \u8fd9\u4e2a\u5927\u5de5\u5382\u91cc&#xff0c;\u5404\u53f8\u5176\u804c\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e3\u8bfb\u6e90\u7801\u94fe\u63a5<\/p>\n<p>type Client struct {<br \/>\n    NetStream<br \/>\n    chunkSize int      \/\/ \u6570\u636e\u5757\u5927\u5c0f&#xff0c;\u9ed8\u8ba4 4096 \u5b57\u8282<br \/>\n    u         *url.URL \/\/ \u89e3\u6790\u540e\u7684 RTMP \u5730\u5740<br \/>\n} <\/p>\n<p>Client \u662f\u6240\u6709 RTMP \u5ba2\u6237\u7aef\u7684\u57fa\u7840\u9aa8\u67b6\u3002\u5b83\u7ee7\u627f\u4e86 NetStream \u7684\u901a\u4fe1\u80fd\u529b&#xff0c;\u8bb0\u4f4f\u4e86\u6570\u636e\u5757\u5927\u5c0f\u548c\u670d\u52a1\u5668\u5730\u5740\u3002<\/p>\n<h3>\u7b2c\u4e8c&#xff1a;URL \u7684\u62c6\u89e3\u5bc6\u7801<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u60f3\u8c61\u4f60\u662f\u4e00\u4e2a\u5feb\u9012\u5458&#xff0c;\u6536\u5230\u4e00\u4e2a\u5730\u5740&#xff1a;rtmp:\/\/live.example.com\/app\/stream?token&#061;abc\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7b2c\u4e00\u6b65&#xff0c;\u4f60\u5f97\u628a\u5b83\u62c6\u5f00&#xff1a;<\/p>\n<p>func (c *Client) commonStart(ctx context.Context, addr string) (err error) {<br \/>\n    c.u, err &#061; url.Parse(addr)<br \/>\n    \/\/ rtmp:\/\/live.example.com\/app\/stream?token&#061;abc<br \/>\n    \/\/ \u2193 \u62c6\u89e3<br \/>\n    \/\/ Host: live.example.com:1935<br \/>\n    \/\/ Path: \/app\/stream<br \/>\n    \/\/ AppName: app<br \/>\n    \/\/ StreamName: stream?token&#061;abc<br \/>\n} <\/p>\n<p>\u4ee3\u7801\u4f1a\u81ea\u52a8\u8865\u5168\u7aef\u53e3\u53f7&#xff1a;<\/p>\n<ul>\n<li>rtmp:\/\/ \u2192 \u9ed8\u8ba4 1935<\/li>\n<li>rtmps:\/\/ \u2192 \u9ed8\u8ba4 443&#xff08;\u52a0\u5bc6\u901a\u9053&#xff09;<\/li>\n<\/ul>\n<p>if strings.Count(c.u.Host, &#034;:&#034;) &#061;&#061; 0 {<br \/>\n    if isRtmps {<br \/>\n        c.u.Host &#043;&#061; &#034;:443&#034;<br \/>\n    } else {<br \/>\n        c.u.Host &#043;&#061; &#034;:1935&#034;<br \/>\n    }<br \/>\n} <\/p>\n<p>\u5c31\u50cf\u5feb\u9012\u7cfb\u7edf\u81ea\u52a8\u8865\u5168\u90ae\u7f16\u4e00\u6837&#xff0c;\u4ee3\u7801\u9ed8\u9ed8\u5e2e\u4f60\u628a&#034;\u4e0d\u5b8c\u6574&#034;\u7684\u5730\u5740\u8865\u9f50\u4e86\u3002<\/p>\n<h3>\u7b2c\u4e09&#xff1a;\u4e09\u6b21\u63e1\u624b&#xff0c;\u5efa\u7acb\u4fe1\u4efb<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0RTMP \u534f\u8bae\u6709\u4e00\u4e2a\u8457\u540d\u7684&#034;\u4e09\u6b21\u63e1\u624b&#034;&#xff08;C0\/C1\/C2 &#043; S0\/S1\/S2&#xff09;\u3002\u5728\u4ee3\u7801\u4e2d&#xff0c;\u8fd9\u4e00\u6b65\u88ab\u5c01\u88c5\u5728&#xff1a;<\/p>\n<p>func (c *Client) commonRun(handler func(commander Commander) error) (err error) {<br \/>\n    if err &#061; c.ClientHandshake(); err !&#061; nil {<br \/>\n        return<br \/>\n    }<br \/>\n    \/\/ \u63e1\u624b\u6210\u529f&#xff01;\u53d1\u9001\u5757\u5927\u5c0f<br \/>\n    err &#061; c.SendMessage(RTMP_MSG_CHUNK_SIZE, Uint32Message(c.chunkSize)) <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u63e1\u624b\u5b8c\u6210\u540e&#xff0c;\u5ba2\u6237\u7aef\u4f1a\u53d1\u9001\u4e00\u4e2a connect\u200b \u547d\u4ee4&#xff08;AMF0 \u7f16\u7801&#xff09;&#xff1a;<\/p>\n<p>err &#061; c.SendMessage(RTMP_MSG_AMF0_COMMAND, &amp;CallMessage{<br \/>\n    CommandMessage{&#034;connect&#034;, 1},<br \/>\n    map[string]any{<br \/>\n        &#034;app&#034;:      c.AppName,<br \/>\n        &#034;flashVer&#034;: &#034;monibuca\/&#034; &#043; m7s.Version,<br \/>\n        &#034;swfUrl&#034;:   c.u.String(),<br \/>\n        &#034;tcUrl&#034;:    strings.TrimSuffix(c.u.String(), path) &#043; &#034;\/&#034; &#043; c.AppName,<br \/>\n    },<br \/>\n    nil,<br \/>\n}) <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fd9\u5c31\u50cf\u4f60\u5728\u9910\u5385\u8fdb\u95e8\u65f6\u8bf4&#xff1a;&#034;\u4f60\u597d&#xff0c;\u6211\u8981\u8fde\u63a5 app \u5e94\u7528&#xff0c;\u6211\u662f Monibuca v5 \u5ba2\u6237\u7aef\u3002&#034;\u670d\u52a1\u5668\u542c\u5230\u540e\u4f1a\u56de\u4e00\u53e5 _result \u6216 _error\u3002<\/p>\n<h3>\u7b2c\u56db&#xff1a;Puller \u7684\u62c9\u6d41\u5192\u9669\u00a0<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u73b0\u5728&#xff0c;\u6545\u4e8b\u7684\u4e3b\u89d2\u767b\u573a\u4e86\u2014\u2014Puller&#xff08;\u62c9\u6d41\u7279\u5de5&#xff09;\u3002<\/p>\n<h4>4.1 \u51fa\u53d1\u524d\u7684\u51c6\u5907<\/h4>\n<p>func (p *Puller) Start() (err error) {<br \/>\n    p.pullCtx.SetProgressStepsDefs(rtmpPullSteps)<br \/>\n    addr :&#061; p.pullCtx.Connection.RemoteURL<br \/>\n    err &#061; p.pullCtx.Publish()  \/\/ \u5411\u672c\u5730\u6ce8\u518c\u4e00\u4e2a\u53d1\u5e03\u8005 <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Puller \u5148\u5411\u672c\u5730\u7cfb\u7edf&#034;\u62a5\u5230&#034;&#xff0c;\u8bf4&#xff1a;&#034;\u6211\u8981\u5f00\u59cb\u62c9\u6d41\u4e86&#xff0c;\u8bf7\u7ed9\u6211\u5206\u914d\u4e00\u4e2a\u53d1\u5e03\u8005\u8eab\u4efd\u3002&#034;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7136\u540e\u5b83\u4e00\u6b65\u6b65\u63a8\u8fdb\u8fdb\u5ea6\u6761&#xff1a;<\/p>\n<p>StepPublish    \u2192 &#034;Publishing stream&#034;<br \/>\nStepURLParsing \u2192 &#034;Parsing RTMP URL&#034;<br \/>\nStepConnection \u2192 &#034;Connecting to RTMP server&#034;<br \/>\nStepHandshake  \u2192 &#034;Performing RTMP handshake&#034;<br \/>\nStepStreaming  \u2192 &#034;Receiving media stream&#034; <\/p>\n<h4>4.2 \u8fde\u63a5\u4e0e\u63e1\u624b<\/h4>\n<p>p.pullCtx.GoToStepConst(pkg.StepURLParsing)<br \/>\nerr &#061; p.commonStart(p.pullCtx.Context, addr)<br \/>\np.pullCtx.GoToStepConst(pkg.StepConnection)<br \/>\np.pullCtx.GoToStepConst(pkg.StepHandshake)<br \/>\np.pullCtx.GoToStepConst(pkg.StepStreaming) <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6bcf\u4e00\u6b65\u90fd\u50cf\u901a\u5173\u6253\u5361&#xff0c;\u5931\u8d25\u4e86\u5c31\u8c03\u7528 p.pullCtx.Fail(err.Error()) \u5ba3\u544a\u4efb\u52a1\u5931\u8d25\u3002<\/p>\n<h4>4.3 \u8fdb\u5165 Run&#xff1a;\u53d1\u9001 play \u547d\u4ee4<\/h4>\n<p>func (p *Puller) Run() (err error) {<br \/>\n    return p.commonRun(func(commander Commander) error {<br \/>\n        switch response :&#061; commander.(type) {<br \/>\n        case *ResponseCreateStreamMessage:<br \/>\n            m :&#061; &amp;PlayMessage{}<br \/>\n            m.CommandMessage.CommandName &#061; &#034;play&#034;<br \/>\n            m.StreamName &#061; ps[len(ps)-1]  \/\/ \u6d41\u540d\u79f0<br \/>\n            return p.SendMessage(RTMP_MSG_AMF0_COMMAND, m)<br \/>\n        }<br \/>\n        return nil<br \/>\n    })<br \/>\n} <\/p>\n<p>\u5267\u60c5\u9ad8\u6f6e&#xff1a;\u5f53\u670d\u52a1\u5668\u8fd4\u56de createStream \u7684\u54cd\u5e94\u540e&#xff0c;Puller \u7acb\u523b\u53d1\u9001 play\u200b \u547d\u4ee4\u3002\u5c31\u50cf\u5728\u89c6\u9891\u7f51\u7ad9\u70b9\u51fb&#034;\u64ad\u653e&#034;\u6309\u94ae&#xff0c;\u6570\u636e\u6d41\u5f00\u59cb\u6e90\u6e90\u4e0d\u65ad\u5730\u6d8c\u6765\u3002<\/p>\n<h3>\u7b2c\u4e94&#xff1a;Pusher \u7684\u63a8\u6d41\u4f7f\u547d\u00a0<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0e Puller \u76f8\u53cd&#xff0c;Pusher&#xff08;\u63a8\u6d41\u4f7f\u8005&#xff09;\u200b \u7684\u4efb\u52a1\u662f\u5c06\u672c\u5730\u6d41\u8f6c\u63a8\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u3002<\/p>\n<h4>5.1 Start&#xff1a;\u8f7b\u88c5\u4e0a\u9635<\/h4>\n<p>func (p *Pusher) Start() (err error) {<br \/>\n    return p.commonStart(p.pushCtx.Context, p.pushCtx.Connection.RemoteURL)<br \/>\n} <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Pusher \u7684 Start \u5f88\u7b80\u6d01\u2014\u2014\u53ea\u9700\u8981\u5efa\u7acb\u8fde\u63a5&#xff0c;\u5269\u4e0b\u7684\u4ea4\u7ed9 Run\u3002<\/p>\n<h4>5.2 Run&#xff1a;createStream<\/h4>\n<p>case *ResponseCreateStreamMessage:<br \/>\n    p.StreamID &#061; response.StreamId<br \/>\n    err &#061; p.pushCtx.Subscribe()  \/\/ \u8ba2\u9605\u672c\u5730\u6d41<br \/>\n    return p.SendMessage(RTMP_MSG_AMF0_COMMAND, &amp;PublishMessage{<br \/>\n        CURDStreamMessage{&#8230;},<br \/>\n        streamPath,<br \/>\n        &#034;live&#034;,<br \/>\n    }) <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5148\u8ba2\u9605\u672c\u5730\u6d41&#xff08;\u62ff\u5230\u97f3\u89c6\u9891\u6570\u636e&#xff09;&#xff0c;\u7136\u540e\u53d1\u9001 publish\u200b \u547d\u4ee4\u544a\u8bc9\u8fdc\u7a0b\u670d\u52a1\u5668&#xff1a;&#034;\u6211\u8981\u5f00\u59cb\u63a8\u6d41\u4e86&#xff01;&#034;<\/p>\n<h4>5.3 \u6536\u5230\u786e\u8ba4&#xff0c;\u5f00\u59cb\u4f20\u8f93<\/h4>\n<p>case *ResponsePublishMessage:<br \/>\n    if response.Infomation[&#034;code&#034;] &#061;&#061; NetStream_Publish_Start {<br \/>\n        p.Subscribe(p.pushCtx.Subscriber)<br \/>\n        \/\/ \u2705 \u63a8\u6d41\u6b63\u5f0f\u5f00\u59cb&#xff01;<br \/>\n    } <\/p>\n<h3>\u7b2c\u516d&#xff1a;\u5de5\u5382\u7684\u6d41\u6c34\u7ebf<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6700\u540e&#xff0c;\u770b\u770b\u8fd9\u4e9b\u89d2\u8272\u662f\u5982\u4f55\u88ab&#034;\u751f\u4ea7&#034;\u51fa\u6765\u7684&#xff1a;<\/p>\n<p>func NewPuller(_ config.Pull) m7s.IPuller {<br \/>\n    ret :&#061; &amp;Puller{<br \/>\n        Client: Client{chunkSize: 4096},<br \/>\n    }<br \/>\n    ret.NetConnection &#061; &amp;NetConnection{}<br \/>\n    ret.SetDescription(task.OwnerTypeKey, &#034;RTMPPuller&#034;)<br \/>\n    return ret<br \/>\n}<\/p>\n<p>func NewPusher() m7s.IPusher {<br \/>\n    ret :&#061; &amp;Pusher{<br \/>\n        Client: Client{chunkSize: 4096},<br \/>\n    }<br \/>\n    ret.NetConnection &#061; &amp;NetConnection{}<br \/>\n    ret.SetDescription(task.OwnerTypeKey, &#034;RTMPPusher&#034;)<br \/>\n    return ret<br \/>\n} <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5de5\u5382\u51fd\u6570 NewPuller \u548c NewPusher \u5c31\u50cf\u4e24\u6761\u88c5\u914d\u7ebf&#xff0c;\u628a Client \u9aa8\u67b6\u3001NetConnection \u5f15\u64ce\u7ec4\u88c5\u597d&#xff0c;\u8d34\u4e0a\u6807\u7b7e&#xff0c;\u4ea4\u4ed8\u4f7f\u7528\u3002<\/p>\n<h3>\u5c3e\u58f0&#xff1a;\u4ee3\u7801\u80cc\u540e\u7684\u54f2\u5b66<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fd9\u6bb5 RTMP \u5b9e\u73b0\u4f53\u73b0\u4e86\u51e0\u4e2a\u8bbe\u8ba1\u601d\u60f3&#xff1a;<\/p>\n<li>\u590d\u7528\u4e0e\u5206\u79bb&#xff1a;Client \u5c01\u88c5\u4e86\u901a\u7528\u903b\u8f91&#xff0c;Puller \u548c Pusher \u53ea\u9700\u5173\u6ce8\u5404\u81ea\u4e1a\u52a1<\/li>\n<li>\u8fdb\u5ea6\u53ef\u89c2\u6d4b&#xff1a;\u901a\u8fc7 StepDef \u548c GoToStepConst&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u6709\u6e05\u6670\u7684\u8fdb\u5ea6\u53cd\u9988<\/li>\n<li>\u534f\u8bae\u5373\u72b6\u6001\u673a&#xff1a;commonRun \u4e2d\u7684 switch \u5c31\u662f\u4e00\u4e2a\u72b6\u6001\u673a&#xff0c;\u6839\u636e\u670d\u52a1\u5668\u54cd\u5e94\u63a8\u8fdb\u72b6\u6001<\/li>\n<li>\u9519\u8bef\u5904\u7406\u5373\u6545\u4e8b&#xff1a;\u6bcf\u4e2a err !&#061; nil \u90fd\u662f\u4e00\u4e2a&#034;\u5931\u8d25\u5206\u652f&#034;&#xff0c;\u8ba9\u8c03\u7528\u8005\u77e5\u9053\u54ea\u91cc\u51fa\u4e86\u95ee\u9898<\/li>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6700\u540e\u7684\u8bdd&#xff1a;RTMP \u534f\u8bae\u867d\u7136&#034;\u53e4\u8001&#034;&#xff0c;\u4f46\u5b83\u4f9d\u7136\u662f\u76f4\u64ad\u9886\u57df\u7684\u4e2d\u575a\u529b\u91cf\u3002Monibuca v5 \u7528 Go \u8bed\u8a00\u91cd\u65b0\u8be0\u91ca\u4e86\u8fd9\u6761\u7ecf\u5178\u534f\u8bae&#xff0c;\u8ba9\u5b83\u5728\u73b0\u4ee3\u6d41\u5a92\u4f53\u67b6\u6784\u4e2d\u7ee7\u7eed\u53d1\u5149\u53d1\u70ed\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e8f&#xff1a;\u4e00\u6761\u6d41\u5a92\u4f53\u7684\u4e1d\u7ef8\u4e4b\u8def \u5728\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u7684\u4e16\u754c\u91cc&#xff0c;RTMP \u5c31\u50cf\u4e00\u6761\u53e4\u8001\u7684\u4e1d\u7ef8\u4e4b\u8def\u2014\u2014\u6570\u636e\u4ece\u8fdc\u65b9\u8dcb\u6d89\u800c\u6765&#xff0c;\u7a7f\u8d8a\u534f\u8bae\u7684\u91cd\u91cd\u5173\u9698&#xff0c;\u6700\u7ec8\u62b5\u8fbe\u76ee\u7684\u5730\u3002\u800c\u4eca\u5929&#xff0c;\u6211\u4eec\u8981\u8ddf\u968f Monibuca v5\u200b \u7684\u811a\u6b65&#xff0c;\u770b\u770b\u5b83\u662f\u5982\u4f55\u7528 Go \u8bed\u8a00\u6253\u9020\u8fd9\u6761\\&#8221;RTMP \u7279\u5feb\u4e13\u5217\\&#8221;\u7684\u3002<br \/>\n\u7b2c\u4e00&#xff1a;\u84dd\u56fe\u4e0a\u7684\u96f6\u4ef6 \u6545\u4e8b\u8981\u4ece\u4e00\u4e2a\u53eb package rtmp \u7684\u5730\u65b9\u8bf4\u8d77\u3002\u8fd9\u91cc\u4f4f\u7740\u51e0\u4e2a\u6838\u5fc3\u89d2\u8272&#xff1a; \u89d2\u8272  \u8eab<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12568,12567,610],"topic":[],"class_list":["post-110095","post","type-post","status-publish","format-standard","hentry","category-server","tag-monibuca","tag-12567","tag-rtmp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \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\/110095.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5e8f&#xff1a;\u4e00\u6761\u6d41\u5a92\u4f53\u7684\u4e1d\u7ef8\u4e4b\u8def \u5728\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u7684\u4e16\u754c\u91cc&#xff0c;RTMP \u5c31\u50cf\u4e00\u6761\u53e4\u8001\u7684\u4e1d\u7ef8\u4e4b\u8def\u2014\u2014\u6570\u636e\u4ece\u8fdc\u65b9\u8dcb\u6d89\u800c\u6765&#xff0c;\u7a7f\u8d8a\u534f\u8bae\u7684\u91cd\u91cd\u5173\u9698&#xff0c;\u6700\u7ec8\u62b5\u8fbe\u76ee\u7684\u5730\u3002\u800c\u4eca\u5929&#xff0c;\u6211\u4eec\u8981\u8ddf\u968f Monibuca v5\u200b \u7684\u811a\u6b65&#xff0c;\u770b\u770b\u5b83\u662f\u5982\u4f55\u7528 Go \u8bed\u8a00\u6253\u9020\u8fd9\u6761&quot;RTMP \u7279\u5feb\u4e13\u5217&quot;\u7684\u3002 \u7b2c\u4e00&#xff1a;\u84dd\u56fe\u4e0a\u7684\u96f6\u4ef6 \u6545\u4e8b\u8981\u4ece\u4e00\u4e2a\u53eb package rtmp \u7684\u5730\u65b9\u8bf4\u8d77\u3002\u8fd9\u91cc\u4f4f\u7740\u51e0\u4e2a\u6838\u5fc3\u89d2\u8272&#xff1a; \u89d2\u8272 \u8eab\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110095.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-25T14:16:54+00:00\" \/>\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\/110095.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110095.html\",\"name\":\"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-25T14:16:54+00:00\",\"dateModified\":\"2026-09-25T14:16:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110095.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110095.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110095.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217\"}]},{\"@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":"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \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\/110095.html","og_locale":"zh_CN","og_type":"article","og_title":"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5e8f&#xff1a;\u4e00\u6761\u6d41\u5a92\u4f53\u7684\u4e1d\u7ef8\u4e4b\u8def \u5728\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u7684\u4e16\u754c\u91cc&#xff0c;RTMP \u5c31\u50cf\u4e00\u6761\u53e4\u8001\u7684\u4e1d\u7ef8\u4e4b\u8def\u2014\u2014\u6570\u636e\u4ece\u8fdc\u65b9\u8dcb\u6d89\u800c\u6765&#xff0c;\u7a7f\u8d8a\u534f\u8bae\u7684\u91cd\u91cd\u5173\u9698&#xff0c;\u6700\u7ec8\u62b5\u8fbe\u76ee\u7684\u5730\u3002\u800c\u4eca\u5929&#xff0c;\u6211\u4eec\u8981\u8ddf\u968f Monibuca v5\u200b \u7684\u811a\u6b65&#xff0c;\u770b\u770b\u5b83\u662f\u5982\u4f55\u7528 Go \u8bed\u8a00\u6253\u9020\u8fd9\u6761\"RTMP \u7279\u5feb\u4e13\u5217\"\u7684\u3002 \u7b2c\u4e00&#xff1a;\u84dd\u56fe\u4e0a\u7684\u96f6\u4ef6 \u6545\u4e8b\u8981\u4ece\u4e00\u4e2a\u53eb package rtmp \u7684\u5730\u65b9\u8bf4\u8d77\u3002\u8fd9\u91cc\u4f4f\u7740\u51e0\u4e2a\u6838\u5fc3\u89d2\u8272&#xff1a; \u89d2\u8272 \u8eab","og_url":"https:\/\/www.wsisp.com\/helps\/110095.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-25T14:16:54+00:00","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\/110095.html","url":"https:\/\/www.wsisp.com\/helps\/110095.html","name":"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-25T14:16:54+00:00","dateModified":"2026-09-25T14:16:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110095.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110095.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110095.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Monibuca \u7684 RTMP \u7279\u5feb\u4e13\u5217"}]},{"@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\/110095","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=110095"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110095\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110095"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}