Discovery Engine v1beta API - Class MediaInfo (1.0.0-beta06)

public sealed class MediaInfo : IMessage<MediaInfo>, IEquatable<MediaInfo>, IDeepCloneable<MediaInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class MediaInfo.

Media-specific user event information.

Inheritance

object > MediaInfo

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

MediaInfo()

public MediaInfo()

MediaInfo(MediaInfo)

public MediaInfo(MediaInfo other)
Parameter
NameDescription
otherMediaInfo

Properties

HasMediaProgressPercentage

public bool HasMediaProgressPercentage { get; }

Gets whether the "media_progress_percentage" field is set

Property Value
TypeDescription
bool

MediaProgressDuration

public Duration MediaProgressDuration { get; set; }

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][Duration.seconds] should be set to 90.

Property Value
TypeDescription
Duration

MediaProgressPercentage

public float MediaProgressPercentage { get; set; }

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.

Property Value
TypeDescription
float