Resource: DvrSession
DvrSession is a sub-resource under channel. Each DvrSession represents a DVR recording of the live stream for a specific time range.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
Identifier. The resource name of the DVR session, in the following format:
|
create |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Output only. The update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
Optional. User-defined key/value metadata. An object containing a list of |
state |
Output only. The state of the clip. |
error |
Output only. An error object that describes the reason for the failure. This property only presents when |
dvr |
Required. A list of DVR manifests. Currently only one DVR manifest is allowed. |
dvr |
Required. The specified ranges of segments to generate a DVR recording. |
State
State of the DVR session.
Enums | |
---|---|
STATE_UNSPECIFIED |
State is not specified. |
PENDING |
The operation is pending to be picked up by the server. |
UPDATING |
The session is being updated. |
SCHEDULED |
The session is scheduled and waiting for the start time. |
LIVE |
The session is currently in progress and the outputs are available in the specified Cloud Storage bucket. For additional information, see the dvrManifests.output_uri field. |
FINISHED |
Outputs are available in the specified Cloud Storage bucket. For additional information, see the dvrManifests.output_uri field. |
FAILED |
The operation has failed. For additional information, see the error field. |
DELETING |
The session is being deleted. |
POST_PROCESSING |
The session is being post processed. |
COOLDOWN |
The session is in cooldown. The cooldown period lasts for 60 seconds. When the DVR session is updated by the user to have a new end time that is likely already in the past, the DVR manifest will end as soon as possible and the DVR session will move to this state. This is done to prevent the players to receive a manifest update that removes a segment that has already been played. After the cooldown period ends, a new manifest is generated that honors the new end time. |
STOPPING |
The session is being stopped. The session will move to STOPPING state, if the parent channel is updated. |
DvrManifest
DvrManifest identifies a source manifest and specifies a file name for the generated DVR manifest.
JSON representation |
---|
{ "manifestKey": string, "outputUri": string } |
Fields | |
---|---|
manifest |
Required. A unique key that identifies a manifest config in the parent channel. This key is the same as |
output |
Output only. The output URI of the DVR manifest. The DVR output will be placed in a directory named |
DvrWindow
DvrWindow represents a DVR window.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field kind . The allowlist forms of a DVR window. kind can be only one of the following: |
|
time |
A time interval in the form of a tuple of Unix epoch time. |
TimeInterval
TimeInterval represents a time interval.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
start |
Optional. The start time of the interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
Optional. The end time of the interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Methods |
|
---|---|
|
Creates a DVR session with the provided unique ID in the specified channel. |
|
Deletes the specified DVR session. |
|
Returns the specified DVR session. |
|
Returns a list of all DVR sessions in the specified channel. |
|
Updates the specified DVR session. |