Scheduled Channel

Scheduled Channel은 Pre-recorded Files과 Live Streams를 편성하여 Live Channel을 생성할 수 있습니다. Sechduled Channel API의 Body는 ScheduledChannel의 Schedule File과 동일한 구조입니다.

Get Scheduled Channel List

Application ({vhost name}/{app name}) 내의 모든 Scheduled Channel을 조회합니다.

Request

GET /v1/vhosts/{vhost}/apps/{app}/scheduledChannels

Header

Authorization: Basic {credentials}

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

Responses

200 Ok

The request has succeeded

Header

Content-Type: application/json

Body

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

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

Authentication required

Header

WWW-Authenticate: Basic realm=”OvenMediaEngine”

Body

{
    "message": "[HTTP] Authorization header is required to call API (401)",
    "statusCode": 401
}
404 Not Found

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 Scheduled Channel

Request

POST /v1/vhosts/{vhost}/apps/{app}/scheduledChannels

Header

Body

Responses

201 Created

A stream has been created.

Header

Body

400 Bad Request

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

401 Unauthorized

Authentication required

Header

Body

404 Not Found

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

Body

409 Conflict

A stream with the same name already exists

502 Bad Gateway

Failed to pull provided URL

500 Internal Server Error

Unknown error

Patch Schedule

Scheduled Channel의 Schedule을 업데이트합니다. <Stream>은 PATCH할 수 없습니다.

Request

PATCH /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}

Body

Write the value you want to modify. However, name and outputProfiles cannot be modified.

Responses

200 Ok

The request has succeeded

Header

Body

400 Bad Request

Invalid request.

401 Unauthorized

Authentication required

Header

Body

404 Not Found

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

Body

Get Scheduled Channel Info

Scheduled Channel의 상세 정보를 조회합니다. 현재 재생 중인 Program과 Item 정보도 함께 제공됩니다.

Request

GET /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}

Header

Responses

200 Ok

The request has succeeded

Header

Body

401 Unauthorized

Authentication required

Header

Body

404 Not Found

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

Header

Body

Delete Scheduled Channel

Request

DELETE /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}

Header

Responses

200 Ok

The request has succeeded

Header

Body

401 Unauthorized

Authentication required

Header

Body

404 Not Found

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

Header

Body

Last updated

Was this helpful?