CoWatchingState

@Immutable
@AutoValue
@PublicApi
abstract class CoWatchingState : 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 functions

java-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 functions

From com.google.android.meet.addons.QueriedCoWatchingState
java-static QueriedCoWatchingState!
of(mediaPlayoutPosition: Duration!)

Public functions

builder

java-static fun builder(): CoWatchingState.Builder!

Returns a new Builder.

coWatchingQueue

abstract fun coWatchingQueue(): CoWatchingQueue!

Returns the queueing values.

mediaId

abstract fun mediaId(): String!

Returns the identifier for the media being played.

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

mediaPlayoutPosition

abstract fun mediaPlayoutPosition(): Duration!

Returns the current position of the media playout.

mediaPlayoutRate

abstract fun mediaPlayoutRate(): Double

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

playbackState

abstract fun playbackState(): CoWatchingState.PlaybackState!

Returns the current state of media playback.

toBuilder

abstract fun toBuilder(): CoWatchingState.Builder!

Returns a new Builder from the current object.