Class: Google::Apis::SlidesV1::VideoProperties
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::VideoProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb
Overview
The properties of the Video.
Instance Attribute Summary collapse
-
#auto_play ⇒ Boolean
(also: #auto_play?)
Whether to enable video autoplay when the page is displayed in present mode.
-
#end ⇒ Fixnum
The time at which to end playback, measured in seconds from the beginning of the video.
-
#mute ⇒ Boolean
(also: #mute?)
Whether to mute the audio during video playback.
-
#outline ⇒ Google::Apis::SlidesV1::Outline
The outline of a PageElement.
-
#start ⇒ Fixnum
The time at which to start playback, measured in seconds from the beginning of the video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoProperties
constructor
A new instance of VideoProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoProperties
Returns a new instance of VideoProperties.
5227 5228 5229 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_play ⇒ Boolean Also known as: auto_play?
Whether to enable video autoplay when the page is displayed in present mode.
Defaults to false.
Corresponds to the JSON property autoPlay
5193 5194 5195 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5193 def auto_play @auto_play end |
#end ⇒ Fixnum
The time at which to end playback, measured in seconds from the beginning of
the video. If set, the end time should be after the start time. If not set or
if you set this to a value that exceeds the video's length, the video will be
played until its end.
Corresponds to the JSON property end
5202 5203 5204 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5202 def end @end end |
#mute ⇒ Boolean Also known as: mute?
Whether to mute the audio during video playback. Defaults to false.
Corresponds to the JSON property mute
5207 5208 5209 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5207 def mute @mute end |
#outline ⇒ Google::Apis::SlidesV1::Outline
The outline of a PageElement. If these fields are unset, they may be inherited
from a parent placeholder if it exists. If there is no parent, the fields will
default to the value used for new page elements created in the Slides editor,
which may depend on the page element kind.
Corresponds to the JSON property outline
5216 5217 5218 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5216 def outline @outline end |
#start ⇒ Fixnum
The time at which to start playback, measured in seconds from the beginning of
the video. If set, the start time should be before the end time. If you set
this to a value that exceeds the video's length in seconds, the video will be
played from the last second. If not set, the video will be played from the
beginning.
Corresponds to the JSON property start
5225 5226 5227 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5225 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5232 5233 5234 5235 5236 5237 5238 |
# File 'lib/google/apis/slides_v1/classes.rb', line 5232 def update!(**args) @auto_play = args[:auto_play] if args.key?(:auto_play) @end = args[:end] if args.key?(:end) @mute = args[:mute] if args.key?(:mute) @outline = args[:outline] if args.key?(:outline) @start = args[:start] if args.key?(:start) end |