Skip to content

piplos/stream-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeFactor

stream-tools

Requests:

/ping - Pings the server for availability, useful for Docker health checks. On a successful response, it will print "ping".

/stream/play - displays what is currently playing. Request parameters:
url - stream link (mandatory)

/stream/status - отображает статус стрима. Request parameters:
url - stream link (mandatory)
duration - stream idle time (optional, default 10)
volume - stream sound level (optional, default -70.0)

Response:

The response will return with one of the HTTP statuses - 200, 400, 500 and JSON in the form:

{
  "code": int,
  "message": string
}

code - duplicate http response status code
message - message body

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published