Skip to content

RTMP: Do not response publish start message if hooks fail. v5.0.212 v6.0.123#4038

Merged
winlinvip merged 3 commits intoossrs:developfrom
winlinvip:bugfix/obs-reconnecting
Apr 23, 2024
Merged

RTMP: Do not response publish start message if hooks fail. v5.0.212 v6.0.123#4038
winlinvip merged 3 commits intoossrs:developfrom
winlinvip:bugfix/obs-reconnecting

Conversation

@winlinvip
Copy link
Copy Markdown
Member

@winlinvip winlinvip commented Apr 23, 2024

Fix #4037 SRS should not send the publish start message onStatus(NetStream.Publish.Start) if hooks fail, which causes OBS to repeatedly reconnect.

Note that this fix does not send an RTMP error message when publishing fails, because neither OBS nor FFmpeg process this specific error message; they only display a general error.

Apart from the order of messages, nothing else has been changed. Previously, we sent the publish start message onStatus(NetStream.Publish.Start) before the HTTP hook on_publish; now, we have modified it to send this message after the HTTP hook.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Apr 23, 2024
@winlinvip winlinvip force-pushed the bugfix/obs-reconnecting branch from 34d070d to 2f035e1 Compare April 23, 2024 06:55
@winlinvip winlinvip changed the title RTMP: Do not response publish start message if hooks fail. RTMP: Do not response publish start message if hooks fail. v5.0.212 v6.0.123 Apr 23, 2024
@winlinvip winlinvip added the RefinedByAI Refined by AI/GPT. label Apr 23, 2024
@winlinvip winlinvip merged commit 37f0faa into ossrs:develop Apr 23, 2024
winlinvip added a commit that referenced this pull request Apr 23, 2024
…4038)

Fix #4037 SRS should not send the publish start message
`onStatus(NetStream.Publish.Start)` if hooks fail, which causes OBS to
repeatedly reconnect.

Note that this fix does not send an RTMP error message when publishing
fails, because neither OBS nor FFmpeg process this specific error
message; they only display a general error.

Apart from the order of messages, nothing else has been changed.
Previously, we sent the publish start message
`onStatus(NetStream.Publish.Start)` before the HTTP hook `on_publish`;
now, we have modified it to send this message after the HTTP hook.
winlinvip added a commit to winlinvip/srs that referenced this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EnglishNative This issue is conveyed exclusively in English. RefinedByAI Refined by AI/GPT.

Development

Successfully merging this pull request may close these issues.

RTMP: Response accurate error when rejecting OBS.

1 participant