Skip to content
New issue

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

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

Already on GitHub? # to your account

How to authenticate HTTP FLV streaming? #910

Closed
PMExtra opened this issue Jun 5, 2017 · 6 comments
Closed

How to authenticate HTTP FLV streaming? #910

PMExtra opened this issue Jun 5, 2017 · 6 comments
Assignees
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Milestone

Comments

@PMExtra
Copy link

PMExtra commented Jun 5, 2017

Does HTTP FLV streaming require authentication?

TRANS_BY_GPT3

@winlinvip winlinvip added the Feature It's a new feature. label Jun 10, 2017
@winlinvip winlinvip added this to the srs 3.0 release milestone Jun 10, 2017
@winlinvip
Copy link
Member

Not supported right now. It's in the plan of SRS3.

@myles1231
Copy link

myles1231 commented Jun 23, 2017

Is it reasonable to use http_hooks_on_connect?

TRANS_BY_GPT3

@winlinvip
Copy link
Member

SRS2 will support HTTP callback for FLV.

@winlinvip
Copy link
Member

winlinvip commented Aug 11, 2018

SRS2:

[2018-08-11 19:07:51][trace] post to sessions, req={"action":"on_play","client_id":113,"ip":"127.0.0.1","vhost":"defaultVhost","app":"live","stream":"livestream","param":"","pageUrl":""}
[2018-08-11 19:07:51][trace] srs on_play: client id=113, ip=127.0.0.1, vhost=defaultVhost, app=live, stream=livestream, param=, pageUrl=
127.0.0.1 - - [11/Aug/2018:19:07:51] "POST /api/v1/sessions HTTP/1.1" 200 25 "" "SRS(Simple RTMP Server)2.0.253"
[2018-08-11 19:07:52][trace] post to sessions, req={"action":"on_stop","client_id":113,"ip":"127.0.0.1","vhost":"defaultVhost","app":"live","stream":"livestream","param":""}
[2018-08-11 19:07:52][trace] srs on_stop: client id=113, ip=127.0.0.1, vhost=defaultVhost, app=live, stream=livestream, param=
127.0.0.1 - - [11/Aug/2018:19:07:52] "POST /api/v1/sessions HTTP/1.1" 200 25 "" "SRS(Simple RTMP Server)2.0.253"

@winlinvip
Copy link
Member

SRS3:

[2018-08-11 19:23:11][trace] post to sessions, req={"action":"on_play","client_id":109,"ip":"::ffff:127.0.0.1","vhost":"defaultVhost","app":"live","stream":"livestream","param":"","pageUrl":""}
[2018-08-11 19:23:11][trace] srs on_play: client id=109, ip=::ffff:127.0.0.1, vhost=defaultVhost, app=live, stream=livestream, param=, pageUrl=
127.0.0.1 - - [11/Aug/2018:19:23:11] "POST /api/v1/sessions HTTP/1.1" 200 25 "" "SRS/3.0.39(OuXuli)"
[2018-08-11 19:23:16][trace] post to sessions, req={"action":"on_stop","client_id":109,"ip":"::ffff:127.0.0.1","vhost":"defaultVhost","app":"live","stream":"livestream","param":""}
[2018-08-11 19:23:16][trace] srs on_stop: client id=109, ip=::ffff:127.0.0.1, vhost=defaultVhost, app=live, stream=livestream, param=
127.0.0.1 - - [11/Aug/2018:19:23:16] "POST /api/v1/sessions HTTP/1.1" 200 25 "" "SRS/3.0.39(OuXuli)"

@winlinvip
Copy link
Member

winlinvip commented Apr 15, 2019

SRS2 and SRS3 have both supported FLV authentication, please refer to http hooks.

  • SRS2: HTTP Callback: the parameter of on_play at CN or EN.
  • SRS3: HTTP Callback: the parameter of on_play at CN or EN.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Sep 15, 2021
@winlinvip winlinvip changed the title HTTP FLV 拉流如何鉴权? How to authenticate HTTP FLV streaming? Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants