ScheduledChannel

ScheduledChannel allows you to create a live channel by scheduling pre-recorded files has been added to OvenMediaEngine. Other services or software call this Pre-recorded Live or File Live, but OvenMediaEngine plans to expand the function to organize live channels as a source, so we named it Scheduled Channel.

ScheduledChannel can be controlled by API or file. For more information about ScheduledChannel, see below.

Scheduled Channelchevron-right

The body of the API all has the same structure as the ScheduledChannel schedule file.

Get Channel List

Get all scheduled channels in the {vhost name}/{app name} application.

Request

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

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

{
    "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
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

Body

Create Channel

Create a Scheduled channel.

Request

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

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

Patch Schedule

Update the schedule. <Stream> cannot be PATCHed.

Request

chevron-rightPATCH /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}hashtag

Body

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

Responses

chevron-right200 Okhashtag

The request has succeeded

Header

Body

chevron-right400 Bad Requesthashtag

Invalid request.

chevron-right401 Unauthorizedhashtag

Authentication required

Header

Body

chevron-right404 Not Foundhashtag

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

Body

Get Channel Info

Get detailed information of scheduled channel. It also provides information about the currently playing program and item.

Request

chevron-rightGET /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}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

Delete Channel

Delete Scheduled Channel

Request

chevron-rightDELETE /v1/vhosts/{vhost}/apps/{app}/scheduledChannels/{channel name}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

Was this helpful?