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][google.protobuf.Duration.seconds]
should be set to 90.
public float MediaProgressPercentage { get; set; }
Media progress should be computed using only the
[media_progress_duration][google.cloud.discoveryengine.v1beta.MediaInfo.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eMediaInfo\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API, specifically version 1.0.0-beta18, and it outlines how to use the class in C#.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMediaInfo\u003c/code\u003e class provides information about media-specific user events, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eMediaProgressDuration\u003c/code\u003e and \u003ccode\u003eMediaProgressPercentage\u003c/code\u003e, which are used to track a user's progress within media content, such as the time spent watching a video or a percentage of a video watched.\u003c/p\u003e\n"],["\u003cp\u003eThe properties \u003ccode\u003eHasMediaProgressPercentage\u003c/code\u003e can be used to know if the \u003ccode\u003emedia_progress_percentage\u003c/code\u003e has been set.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for the \u003ccode\u003eMediaInfo\u003c/code\u003e class, one for default instantiation and another for creating a \u003ccode\u003eMediaInfo\u003c/code\u003e object based on an existing \u003ccode\u003eMediaInfo\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class MediaInfo (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo) \n\n public sealed class MediaInfo : IMessage\u003cMediaInfo\u003e, IEquatable\u003cMediaInfo\u003e, IDeepCloneable\u003cMediaInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class MediaInfo.\n\nMedia-specific user event information. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MediaInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MediaInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.MediaInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### MediaInfo()\n\n public MediaInfo()\n\n### MediaInfo(MediaInfo)\n\n public MediaInfo(MediaInfo other)\n\nProperties\n----------\n\n### HasMediaProgressPercentage\n\n public bool HasMediaProgressPercentage { get; }\n\nGets whether the \"media_progress_percentage\" field is set\n\n### MediaProgressDuration\n\n public Duration MediaProgressDuration { get; set; }\n\nThe media progress time in seconds, if applicable.\nFor example, if the end user has finished 90 seconds of a playback video,\nthen\n\\[MediaInfo.media_progress_duration.seconds\\]\\[google.protobuf.Duration.seconds\\]\nshould be set to 90.\n\n### MediaProgressPercentage\n\n public float MediaProgressPercentage { get; set; }\n\nMedia progress should be computed using only the\n\\[media_progress_duration\\]\\[google.cloud.discoveryengine.v1beta.MediaInfo.media_progress_duration\\]\nrelative to the media total length.\n\nThis value must be between `[0, 1.0]` inclusive.\n\nIf this is not a playback or the progress cannot be computed (e.g. ongoing\nlivestream), this field should be unset."]]