mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-27 20:12:48 +08:00
修复MessageStreamID没有赋值导致的push错误
This commit is contained in:
@@ -121,6 +121,8 @@ func (pusher *RTMPPusher) Push() error {
|
|||||||
case Response_Result, Response_OnStatus:
|
case Response_Result, Response_OnStatus:
|
||||||
if response, ok := msg.MsgData.(*ResponseCreateStreamMessage); ok {
|
if response, ok := msg.MsgData.(*ResponseCreateStreamMessage); ok {
|
||||||
pusher.StreamID = response.StreamId
|
pusher.StreamID = response.StreamId
|
||||||
|
pusher.audio.MessageStreamID = pusher.StreamID
|
||||||
|
pusher.video.MessageStreamID = pusher.StreamID
|
||||||
URL, _ := url.Parse(pusher.RemoteURL)
|
URL, _ := url.Parse(pusher.RemoteURL)
|
||||||
_, streamPath, _ := strings.Cut(URL.Path, "/")
|
_, streamPath, _ := strings.Cut(URL.Path, "/")
|
||||||
_, streamPath, _ = strings.Cut(streamPath, "/")
|
_, streamPath, _ = strings.Cut(streamPath, "/")
|
||||||
|
Reference in New Issue
Block a user