Class: Google::Apis::YoutubePartnerV1::CuepointSettings
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::CuepointSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
-
#cue_type ⇒ String
The cuepoint's type.
-
#duration_secs ⇒ Fixnum
The cuepoint's duration, in seconds.
-
#offset_time_ms ⇒ Fixnum
This value specifies a point in time in the video when viewers should see an ad or in-stream slate.
-
#walltime ⇒ DateTime
This value specifies the wall clock time at which the cuepoint should be inserted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CuepointSettings
constructor
A new instance of CuepointSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CuepointSettings
Returns a new instance of CuepointSettings
1703 1704 1705 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1703 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cue_type ⇒ String
The cuepoint's type. See the Getting started guide for an explanation of the
different types of cuepoints. Also see the Life of a broadcast document for
best practices about inserting cuepoints during your broadcast.
Corresponds to the JSON property cueType
1672 1673 1674 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1672 def cue_type @cue_type end |
#duration_secs ⇒ Fixnum
The cuepoint's duration, in seconds. This value must be specified if the
cueType is ad and is ignored otherwise.
Corresponds to the JSON property durationSecs
1678 1679 1680 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1678 def duration_secs @duration_secs end |
#offset_time_ms ⇒ Fixnum
This value specifies a point in time in the video when viewers should see an
ad or in-stream slate. The property value identifies a time offset, in
milliseconds, from the beginning of the monitor stream. Though measured in
milliseconds, the value is actually an approximation, and YouTube will insert
the cuepoint as closely as possible to that time. You should not specify a
value for this parameter if your broadcast does not have a monitor stream.
This property's default value is 0, which indicates that the cuepoint should
be inserted as soon as possible. If your broadcast stream is not delayed, then
0 is also the only valid value. However, if your broadcast stream is delayed,
then the property value can specify the time when the cuepoint should be
inserted. See the Getting started guide for more details.
Note: If your broadcast had a testing phase, the offset is measured from the
time that the testing phase began.
Corresponds to the JSON property offsetTimeMs
1695 1696 1697 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1695 def offset_time_ms @offset_time_ms end |
#walltime ⇒ DateTime
This value specifies the wall clock time at which the cuepoint should be
inserted. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
Corresponds to the JSON property walltime
1701 1702 1703 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1701 def walltime @walltime end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1708 1709 1710 1711 1712 1713 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1708 def update!(**args) @cue_type = args[:cue_type] if args.key?(:cue_type) @duration_secs = args[:duration_secs] if args.key?(:duration_secs) @offset_time_ms = args[:offset_time_ms] if args.key?(:offset_time_ms) @walltime = args[:walltime] if args.key?(:walltime) end |