Interface MediaInfoOrBuilder (0.39.0)

public interface MediaInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMediaProgressDuration()

public abstract Duration getMediaProgressDuration()

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 media_progress_duration = 1;

Returns
Type Description
Duration

The mediaProgressDuration.

getMediaProgressDurationOrBuilder()

public abstract DurationOrBuilder getMediaProgressDurationOrBuilder()

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 media_progress_duration = 1;

Returns
Type Description
DurationOrBuilder

getMediaProgressPercentage()

public abstract float getMediaProgressPercentage()

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.

optional float media_progress_percentage = 2;

Returns
Type Description
float

The mediaProgressPercentage.

hasMediaProgressDuration()

public abstract boolean hasMediaProgressDuration()

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 media_progress_duration = 1;

Returns
Type Description
boolean

Whether the mediaProgressDuration field is set.

hasMediaProgressPercentage()

public abstract boolean hasMediaProgressPercentage()

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.

optional float media_progress_percentage = 2;

Returns
Type Description
boolean

Whether the mediaProgressPercentage field is set.