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