Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::MediaInfo.
Media-specific user event information.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#media_progress_duration
def media_progress_duration() -> ::Google::Protobuf::Duration
- (::Google::Protobuf::Duration) — The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be set to 90.
#media_progress_duration=
def media_progress_duration=(value) -> ::Google::Protobuf::Duration
- value (::Google::Protobuf::Duration) — The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be set to 90.
- (::Google::Protobuf::Duration) — The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be set to 90.
#media_progress_percentage
def media_progress_percentage() -> ::Float
-
(::Float) — Media progress should be computed using only the
media_progress_duration
relative to the media total length.
This value must be between
[0, 1.0]
inclusive.If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.
#media_progress_percentage=
def media_progress_percentage=(value) -> ::Float
-
value (::Float) — Media progress should be computed using only the
media_progress_duration
relative to the media total length.
This value must be between
[0, 1.0]
inclusive.If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.
-
(::Float) — Media progress should be computed using only the
media_progress_duration
relative to the media total length.
This value must be between
[0, 1.0]
inclusive.If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset.