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

API: When establishing a webrtc connection and playing, the webhook callback does not work. #2555

Closed
ly236 opened this issue Aug 25, 2021 · 7 comments
Assignees
Labels
TransByAI Translated by AI/GPT.
Milestone

Comments

@ly236
Copy link

ly236 commented Aug 25, 2021

Description'

Please ensure that the markdown structure is maintained.

Version 4.0 Release

  1. The webhook callback does not work when the webrtc client is connecting or playing.'

Please ensure that the markdown structure is maintained.

  1. When streaming, the webhook connect and publish functions are both working normally.

Please ensure that the markdown structure is maintained.

Reproduction (Replay)

Please ensure that the markdown structure is maintained.

Expected Behavior (Expect)

When the webrtc client connects and plays, the webhook should perform a normal callback.

Please ensure that the markdown structure is maintained.

TRANS_BY_GPT3

@winlinvip winlinvip changed the title webrtc:连接、播放时,webhook回调不起作用 API: webrtc 连接、播放时,webhook回调不起作用 Aug 25, 2021
@winlinvip winlinvip added this to the SRS 4.0 release milestone Aug 25, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 26, 2021

Currently, the WebRTC protocol supports on_play/on_stop for the play function and on_publish/on_unpublish for the publish function.

TRANS_BY_GPT3

@ly236
Copy link
Author

ly236 commented Aug 26, 2021

Hello, my version is the latest version of SRS 4.0 release.
I have added vhost.http_hooks.on_connect, vhost.http_hooks.on_play, vhost.http_hooks.on_publish in srs.conf.
For non-webrtc streaming, both push and pull streams can be called back normally.
I have tried ffmpeg push stream and webrtc push stream for webrtc. There is no callback when playing webrtc.
Did I miss any configuration?

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 26, 2021

So you need to tell me, which one is effective? Which one is not effective?

TRANS_BY_GPT3

@ly236
Copy link
Author

ly236 commented Aug 26, 2021

Well, if webrtc already supports play publish callbacks, then I suspect it might be an issue with my version or configuration. When pushing the stream using ffmpeg and playing it with flv or vlc, I receive callbacks. However, when playing with webrtc, I do not receive any callbacks.

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 26, 2021

Try using the latest version.

TRANS_BY_GPT3

@ly236
Copy link
Author

ly236 commented Aug 30, 2021

Using the latest code from the 4.0 release version, callbacks are now available when playing WebRTC.

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Sep 3, 2021

#2509
Resolved

TRANS_BY_GPT3

@winlinvip winlinvip changed the title API: webrtc 连接、播放时,webhook回调不起作用 API: When establishing a webrtc connection and playing, the webhook callback does not work. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants