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

support rtsp client #144

Merged
merged 5 commits into from
Aug 10, 2024
Merged

support rtsp client #144

merged 5 commits into from
Aug 10, 2024

Conversation

harlanc
Copy link
Owner

@harlanc harlanc commented Aug 9, 2024

Support pulling RTSP streams from the remote RTSP camera:

The xiu configuration file should be configured as follows:

##########################
#    RTSP configurations  #
##########################
[rtsp]
enabled = true
port = 5545
relay_enabled = true // relay_enabled must be true
[rtsp.auth]
pull_enabled = false
push_enabled = false
# simple or md5
algorithm = "simple"

Use the following HTTP API to start a pull task:

curl -X POST -H "Content-Type: application/json" -d '{
     "id" : "123",
     "identifier": {
                "rtsp": {
                    "stream_path": "live/test"
                }
            },
     "server_address":"localhost:5544",
     "relay_type":"Pull"
}' http://localhost:8001/api/start_relay_stream
  • id : the task id which should be unique.
  • stream_path: the rtsp stream path, for example: if the rtsp URL is rtsp://localhost:5544/live/test then the stream path is live/test
  • relay_type : here must be Pull

And use the following API to stop the task:

curl -X POST -H "Content-Type: application/json" -d '{
     "id" : "123",
}' http://localhost:8001/api/stop_relay_stream

@harlanc harlanc merged commit 4919e0e into master Aug 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant