/** * The structure contains current playback session metrics. * The values are reset each time a new stream is loaded. */ export default interface PlaybackStats { /** * The total number of frames dropped by the player. */ droppedFrames: number; /** * The total bandwidth required for the current streams, in bits per second. */ streamBandwidth?: number; /** * The current estimated network bandwidth, in bits per second. */ estimatedBandwidth?: number; /** * The accumulated duration, in seconds, of active network transfer of bytes. * @remarks Available on iOS/tvOS. */ transferDurationSec?: number; /** * The accumulated number of bytes transferred over the network. * @remarks Available on iOS/tvOS. */ numberOfBytesTransferred?: number; /** * The number of media read requests from the server to this client. * @remarks Available on iOS/tvOS. */ numberOfMediaRequests?: number; /** * The Unix Epoch time, in milliseconds, at which playback began. * @remarks Available on iOS/tvOS. */ playbackStartTimestamp?: number; /** * The accumulated duration, in seconds, until the player item is ready to play. * @remarks Available on iOS/tvOS. */ startupTimeSec?: number; /** * The accumulated duration, in seconds, of the media played. * @remarks Available on iOS/tvOS. */ durationWatchedSec?: number; /** * The total number of playback stalls encountered. * @remarks Available on iOS/tvOS. */ numberOfStalls?: number; /** * The accumulated duration, in seconds, of the media segments downloaded. * @remarks Available on iOS/tvOS. */ segmentsDownloadedDurationSec?: number; /** * The standard deviation of the observed segment download bit rates. * @remarks Available on iOS/tvOS. */ observedBitrateStandardDeviation?: number; /** * The empirical throughput, in bits per second, across all media downloaded. * @remarks Available on iOS/tvOS. */ observedBitrate?: number; /** * The audio track’s average bit rate, in bits per second. * @remarks Available on iOS/tvOS. */ averageAudioBitrate?: number; /** * The video track’s average bit rate, in bits per second. * @remarks Available on iOS/tvOS. */ averageVideoBitrate?: number; /** * The average throughput, in bits per second, required to play the stream, as advertised by the server. * @remarks Available on iOS/tvOS. */ indicatedAverageBitrate?: number; /** * The throughput, in bits per second, required to play the stream, as advertised by the server. * @remarks Available on iOS/tvOS. */ indicatedBitrate?: number; /** * The amount of media data currently buffered ahead of the playhead, in milliseconds. */ bufferedTimeMsec?: number; }