Package org.mozilla.geckoview
Class MediaSession.PositionState
Object
org.mozilla.geckoview.MediaSession.PositionState
- Enclosing class:
- MediaSession
Holds the details of the media session's playback state.
-
Field Summary
Modifier and TypeFieldDescriptionfinal double
The duration of the media in seconds.final double
The media playback rate coefficient.final double
The last reported media playback position in seconds. -
Constructor Summary
ModifierConstructorDescriptionprotected
PositionState
(double duration, double position, double playbackRate) PositionState constructor. -
Method Summary
-
Field Details
-
duration
public final double durationThe duration of the media in seconds. -
position
public final double positionThe last reported media playback position in seconds. -
playbackRate
public final double playbackRateThe media playback rate coefficient. The rate is positive for forward and negative for backward playback.
-
-
Constructor Details
-
PositionState
protected PositionState(double duration, double position, double playbackRate) PositionState constructor.- Parameters:
duration
- The media duration in seconds.position
- The current media playback position in seconds.playbackRate
- The playback rate coefficient.
-
-
Method Details