Data associated with playback position changes. Updates every second.

interface RNPlaybackPositionChangedData {
    currentDate?: number;
    currentPosition: number;
    seekableDuration?: number;
    viewingContext: RNPlayerViewingContext;
}

Properties

currentDate?: number

Date representation of the current position for live streams. Time interval in seconds since epoch.

currentPosition: number

Current playback position in seconds.

seekableDuration?: number

Total seekable duration for VOD/LIVE content in seconds.

viewingContext: RNPlayerViewingContext

Context indicating how the player is being viewed. Can indicate if content is playing in PiP, SharePlay, AirPlay, or background mode.