CoWatchingState

@Immutable
@AutoValue
@PublicApi
public abstract class CoWatchingState implements QueriedCoWatchingState



Represents the state of the co-watching activity.

Used when receiving state updates from other participants and as the return value of onStateQuery.

Summary

Nested types

Builder for CoWatchingState.

Represents the current state of media playback.

Public methods

static CoWatchingState.Builder

Returns a new Builder.

abstract CoWatchingQueue

Returns the queueing values.

abstract String

Returns the identifier for the media being played.

abstract Duration

Returns the current position of the media playout.

abstract double

Returns the current playout rate, where 1.0 is normal speed.

abstract CoWatchingState.PlaybackState

Returns the current state of media playback.

abstract CoWatchingState.Builder

Returns a new Builder from the current object.

Inherited methods

From com.google.android.meet.addons.QueriedCoWatchingState
static QueriedCoWatchingState
of(Duration mediaPlayoutPosition)

Public methods

builder

public static CoWatchingState.Builder builder()

Returns a new Builder.

coWatchingQueue

public abstract CoWatchingQueue coWatchingQueue()

Returns the queueing values.

mediaId

public abstract String mediaId()

Returns the identifier for the media being played.

Note: the actual format only matters to co-watching app.

mediaPlayoutPosition

public abstract Duration mediaPlayoutPosition()

Returns the current position of the media playout.

mediaPlayoutRate

public abstract double mediaPlayoutRate()

Returns the current playout rate, where 1.0 is normal speed.

playbackState

public abstract CoWatchingState.PlaybackState playbackState()

Returns the current state of media playback.

toBuilder

public abstract CoWatchingState.Builder toBuilder()

Returns a new Builder from the current object.