Class: Google::Apis::YoutubeV3::Cuepoint
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Cuepoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Note that there may be a 5-second end-point resolution issue. For instance, if a cuepoint comes in for 22:03:27, we may stuff the cuepoint into 22:03:25 or 22:03:30, depending. This is an artifact of HLS.
Instance Attribute Summary collapse
-
#cue_type ⇒ String
Corresponds to the JSON property
cueType
. -
#duration_secs ⇒ Fixnum
The duration of this cuepoint.
-
#etag ⇒ String
Corresponds to the JSON property
etag
. -
#id ⇒ String
The identifier for cuepoint resource.
-
#insertion_offset_time_ms ⇒ Fixnum
The time when the cuepoint should be inserted by offset to the broadcast actual start time.
-
#walltime_ms ⇒ Fixnum
The wall clock time at which the cuepoint should be inserted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cuepoint
constructor
A new instance of Cuepoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Cuepoint
Returns a new instance of Cuepoint.
2927 2928 2929 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2927 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cue_type ⇒ String
Corresponds to the JSON property cueType
2898 2899 2900 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2898 def cue_type @cue_type end |
#duration_secs ⇒ Fixnum
The duration of this cuepoint.
Corresponds to the JSON property durationSecs
2903 2904 2905 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2903 def duration_secs @duration_secs end |
#etag ⇒ String
Corresponds to the JSON property etag
2908 2909 2910 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2908 def etag @etag end |
#id ⇒ String
The identifier for cuepoint resource.
Corresponds to the JSON property id
2913 2914 2915 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2913 def id @id end |
#insertion_offset_time_ms ⇒ Fixnum
The time when the cuepoint should be inserted by offset to the broadcast
actual start time.
Corresponds to the JSON property insertionOffsetTimeMs
2919 2920 2921 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2919 def insertion_offset_time_ms @insertion_offset_time_ms end |
#walltime_ms ⇒ Fixnum
The wall clock time at which the cuepoint should be inserted. Only one of
insertion_offset_time_ms and walltime_ms may be set at a time.
Corresponds to the JSON property walltimeMs
2925 2926 2927 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2925 def walltime_ms @walltime_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2932 2933 2934 2935 2936 2937 2938 2939 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2932 def update!(**args) @cue_type = args[:cue_type] if args.key?(:cue_type) @duration_secs = args[:duration_secs] if args.key?(:duration_secs) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @insertion_offset_time_ms = args[:insertion_offset_time_ms] if args.key?(:insertion_offset_time_ms) @walltime_ms = args[:walltime_ms] if args.key?(:walltime_ms) end |