QueriedCoWatchingState

@PublicApi
public interface QueriedCoWatchingState

已知的直接子类
CoWatchingState

表示一起看活动的状态。



表示 onStateQuery 的一起看活动的状态。

这是 CoWatchingState 的子集。查询机制仅用于确保媒体播放按预期继续;要实际设置状态,请调用 的方法。

摘要

公共方法

abstract Duration

返回媒体播放的当前位置。

default static QueriedCoWatchingState
of(Duration mediaPlayoutPosition)

创建具有指定播放位置的新 QueriedCoWatchingState

公共方法

mediaPlayoutPosition

abstract Duration mediaPlayoutPosition()

返回媒体播放的当前位置。

/

default static QueriedCoWatchingState of(Duration mediaPlayoutPosition)

创建具有指定播放位置的新 QueriedCoWatchingState