Video Stitcher V1 API - Class Google::Cloud::Video::Stitcher::V1::PrefetchConfig (v0.7.0)

Reference documentation and code samples for the Video Stitcher V1 API class Google::Cloud::Video::Stitcher::V1::PrefetchConfig.

The configuration for prefetch ads.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enabled

def enabled() -> ::Boolean
Returns
  • (::Boolean) — Required. Indicates whether the option to prefetch ad requests is enabled.

#enabled=

def enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Required. Indicates whether the option to prefetch ad requests is enabled.
Returns
  • (::Boolean) — Required. Indicates whether the option to prefetch ad requests is enabled.

#initial_ad_request_duration

def initial_ad_request_duration() -> ::Google::Protobuf::Duration
Returns
  • (::Google::Protobuf::Duration) — The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.

#initial_ad_request_duration=

def initial_ad_request_duration=(value) -> ::Google::Protobuf::Duration
Parameter
  • value (::Google::Protobuf::Duration) — The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.
Returns
  • (::Google::Protobuf::Duration) — The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.