Stream

Get Stream List

Get all stream names in the {vhost name}/{app name} application.

Request

chevron-rightGET /v1/vhosts/{vhost}/apps/{app}/streamshashtag

Header

Authorization: Basic {credentials}

# Authorization
    Credentials for HTTP Basic Authentication created with <AccessToken>

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Content-Type: application/json

Body

{
	"statusCode": 200,
	"message": "OK",
	"response": [
		"stream",
		"stream2"
	]
}

# statusCode
	Same as HTTP Status Code
# message
	A human-readable description of the response code
# response
	Json array containing a list of stream names
chevron-right401 Unauthorizedhashtag

Authentication required

Header

WWW-Authenticate: Basic realm=”OvenMediaEngine”

Body

{
    "message": "[HTTP] Authorization header is required to call API (401)",
    "statusCode": 401
}
chevron-right404 Not Foundhashtag

The given vhost name or app name could not be found.

Header

Content-Type: application/json

Body

{
    "statusCode": 404,
    "message": "Could not find the application: [default/non-exists] (404)"
}

Create Stream (Pull)

Create a stream by pulling an external URL. External URL protocols currently support RTSP and OVT.

Request

chevron-rightPOST /v1/vhosts/{vhost}/apps/{app}/streamshashtag

Header

Body

Responses

chevron-right201 Createdhashtag

A stream has been created.

Header

Body

chevron-right400 Bad Requesthashtag

Invalid request. Body is not a Json Object or does not have a required value

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right404 Not Foundhashtag

The given vhost name or app name could not be found.

Body

chevron-right409 Conflicthashtag

A stream with the same name already exists

chevron-right502 Bad Gatewayhashtag

Failed to pull provided URL

chevron-right500 Internal Server Errorhashtag

Unknown error

Get Stream Info

Request

chevron-rightGET /v1/vhosts/{vhost}/apps/{app}/streams/{stream}hashtag

Header

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Body

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right404 Not Foundhashtag

The given vhost name or app name could not be found.

Header

Body

chevron-rightOpenAPI Specificationhashtag

OpenAPI 3.0 specification

Delete Stream

This terminates the ingress connection.

circle-exclamation

Request

chevron-rightDELETE /v1/vhosts/{vhost}/apps/{app}/streams/{stream}hashtag

Header

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Body

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right404 Not Foundhashtag

The given vhost name or app name could not be found.

Header

Body

Last updated

Was this helpful?