Resource: Clip
Clip is a sub-resource under channel. Each clip represents a clipping operation that generates a VOD playlist from its channel given a set of timestamp ranges.
JSON representation |
---|
{ "name": string, "createTime": string, "startTime": string, "updateTime": string, "labels": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
The resource name of the clip, in the following format:
|
createTime |
Output only. The creation timestamp of the clip resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
startTime |
Output only. The timestamp when the clip request starts to be processed. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The update timestamp of the clip resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
The labels associated with this resource. Each label is a key-value pair. An object containing a list of |
state |
Output only. The state of the clip. |
outputUri |
Specify the |
error |
Output only. An error object that describes the reason for the failure. This property only presents when |
slices[] |
The specified ranges of segments to generate a clip. |
clipManifests[] |
Required. A list of clip manifests. Currently only one clip manifest is allowed. |
State
State of clipping operation.
Enums | |
---|---|
STATE_UNSPECIFIED |
State is not specified. |
PENDING |
The operation is pending to be picked up by the server. |
CREATING |
The server admitted this create clip request, and outputs are under processing. |
SUCCEEDED |
Outputs are available in the specified Cloud Storage bucket. For additional information, see the outputs field. |
FAILED |
The operation has failed. For additional information, see the error field. |
Slice
Slice represents a slice of the requested clip.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field kind . The allowlist forms of a slice. kind can be only one of the following: |
|
timeSlice |
A slice in form of a tuple of Unix epoch time. |
TimeSlice
TimeSlice represents a tuple of Unix epoch timestamps that specifies a time range.
JSON representation |
---|
{ "markinTime": string, "markoutTime": string } |
Fields | |
---|---|
markinTime |
The mark-in Unix epoch time in the original live stream manifest. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
markoutTime |
The mark-out Unix epoch time in the original live stream manifest. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ClipManifest
ClipManifest identifies a source manifest for the generated clip manifest.
JSON representation |
---|
{ "manifestKey": string, "outputUri": string } |
Fields | |
---|---|
manifestKey |
Required. A unique key that identifies a manifest config in the parent channel. This key is the same as |
outputUri |
Output only. The output URI of the generated clip manifest. This field will be populated when the clips.create request is accepted. Current output format is provided below but may change in the future. Please read this field to get the uri to the generated clip manifest. Format: {clip.output_uri}/{channel.manifest.fileName} Example: gs://my-bucket/clip-outputs/main.m3u8 |
Methods |
|
---|---|
|
Creates a clip with the provided clip ID in the specified channel. |
|
Deletes the specified clip job resource. |
|
Returns the specified clip. |
|
Returns a list of all clips in the specified channel. |