Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

winlinvip
Copy link
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 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
17 checks passed
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RTMP: Response accurate error when rejecting OBS.
1 participant