Class: Google::Apis::SlidesV1::VideoProperties

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

The properties of the Video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VideoProperties

Returns a new instance of VideoProperties



5131
5132
5133
# File 'generated/google/apis/slides_v1/classes.rb', line 5131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_playBoolean 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

Returns:

  • (Boolean)


5094
5095
5096
# File 'generated/google/apis/slides_v1/classes.rb', line 5094

def auto_play
  @auto_play
end

#endFixnum

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

Returns:

  • (Fixnum)


5104
5105
5106
# File 'generated/google/apis/slides_v1/classes.rb', line 5104

def end
  @end
end

#muteBoolean Also known as: mute?

Whether to mute the audio during video playback. Defaults to false. Corresponds to the JSON property mute

Returns:

  • (Boolean)


5109
5110
5111
# File 'generated/google/apis/slides_v1/classes.rb', line 5109

def mute
  @mute
end

#outlineGoogle::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



5119
5120
5121
# File 'generated/google/apis/slides_v1/classes.rb', line 5119

def outline
  @outline
end

#startFixnum

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

Returns:

  • (Fixnum)


5129
5130
5131
# File 'generated/google/apis/slides_v1/classes.rb', line 5129

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5136
5137
5138
5139
5140
5141
5142
# File 'generated/google/apis/slides_v1/classes.rb', line 5136

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