Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#clip_manifests
def clip_manifests() -> ::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>
- (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>) — Required. A list of clip manifests. Currently only one clip manifest is allowed.
#clip_manifests=
def clip_manifests=(value) -> ::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>
- value (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>) — Required. A list of clip manifests. Currently only one clip manifest is allowed.
- (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>) — Required. A list of clip manifests. Currently only one clip manifest is allowed.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The creation timestamp of the clip resource.
#error
def error() -> ::Google::Rpc::Status
-
(::Google::Rpc::Status) — Output only. An error object that describes the reason for the failure.
This property only presents when
state
isFAILED
.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this resource. Each label is a key-value pair.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this resource. Each label is a key-value pair.
- (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this resource. Each label is a key-value pair.
#name
def name() -> ::String
-
(::String) —
The resource name of the clip, in the following format:
projects/{project}/locations/{location}/channels/{c}/clips/{clipId}
.{clipId}
is a user-specified resource id that conforms to the following criteria:- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
#name=
def name=(value) -> ::String
-
value (::String) —
The resource name of the clip, in the following format:
projects/{project}/locations/{location}/channels/{c}/clips/{clipId}
.{clipId}
is a user-specified resource id that conforms to the following criteria:- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
-
(::String) —
The resource name of the clip, in the following format:
projects/{project}/locations/{location}/channels/{c}/clips/{clipId}
.{clipId}
is a user-specified resource id that conforms to the following criteria:- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
#output_uri
def output_uri() -> ::String
-
(::String) — Specify the
output_uri
to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified inclip_manifests
fields will be placed under this URI. The exact URI of the generated manifests will be provided inclip_manifests.output_uri
for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
#output_uri=
def output_uri=(value) -> ::String
-
value (::String) — Specify the
output_uri
to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified inclip_manifests
fields will be placed under this URI. The exact URI of the generated manifests will be provided inclip_manifests.output_uri
for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
-
(::String) — Specify the
output_uri
to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified inclip_manifests
fields will be placed under this URI. The exact URI of the generated manifests will be provided inclip_manifests.output_uri
for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
#slices
def slices() -> ::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>
- (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>) — The specified ranges of segments to generate a clip.
#slices=
def slices=(value) -> ::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>
- value (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>) — The specified ranges of segments to generate a clip.
- (::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>) — The specified ranges of segments to generate a clip.
#start_time
def start_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the clip request starts to be processed.
#state
def state() -> ::Google::Cloud::Video::LiveStream::V1::Clip::State
- (::Google::Cloud::Video::LiveStream::V1::Clip::State) — Output only. The state of the clip.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The update timestamp of the clip resource.