package androidx.media3.exoplayer.analytics;

import androidx.media3.common.C;
import androidx.media3.common.Format;
import androidx.media3.common.util.UnstableApi;
import androidx.media3.exoplayer.analytics.AnalyticsListener;
import java.util.Collections;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
@UnstableApi
public final class PlaybackStats {
    public static final PlaybackStats EMPTY = merge(new PlaybackStats[0]);
    public static final int PLAYBACK_STATE_ABANDONED = 15;
    public static final int PLAYBACK_STATE_BUFFERING = 6;
    static final int PLAYBACK_STATE_COUNT = 16;
    public static final int PLAYBACK_STATE_ENDED = 11;
    public static final int PLAYBACK_STATE_FAILED = 13;
    public static final int PLAYBACK_STATE_INTERRUPTED_BY_AD = 14;
    public static final int PLAYBACK_STATE_JOINING_BACKGROUND = 1;
    public static final int PLAYBACK_STATE_JOINING_FOREGROUND = 2;
    public static final int PLAYBACK_STATE_NOT_STARTED = 0;
    public static final int PLAYBACK_STATE_PAUSED = 4;
    public static final int PLAYBACK_STATE_PAUSED_BUFFERING = 7;
    public static final int PLAYBACK_STATE_PLAYING = 3;
    public static final int PLAYBACK_STATE_SEEKING = 5;
    public static final int PLAYBACK_STATE_STOPPED = 12;
    public static final int PLAYBACK_STATE_SUPPRESSED = 9;
    public static final int PLAYBACK_STATE_SUPPRESSED_BUFFERING = 10;
    public final int abandonedBeforeReadyCount;
    public final int adPlaybackCount;
    public final List<EventTimeAndFormat> audioFormatHistory;
    public final int backgroundJoiningCount;
    public final int endedCount;
    public final int fatalErrorCount;
    public final List<EventTimeAndException> fatalErrorHistory;
    public final int fatalErrorPlaybackCount;
    public final long firstReportedTimeMs;
    public final int foregroundPlaybackCount;
    public final int initialAudioFormatBitrateCount;
    public final int initialVideoFormatBitrateCount;
    public final int initialVideoFormatHeightCount;
    public final long maxRebufferTimeMs;
    public final List<long[]> mediaTimeHistory;
    public final int nonFatalErrorCount;
    public final List<EventTimeAndException> nonFatalErrorHistory;
    public final int playbackCount;
    private final long[] playbackStateDurationsMs;
    public final List<EventTimeAndPlaybackState> playbackStateHistory;
    public final long totalAudioFormatBitrateTimeProduct;
    public final long totalAudioFormatTimeMs;
    public final long totalAudioUnderruns;
    public final long totalBandwidthBytes;
    public final long totalBandwidthTimeMs;
    public final long totalDroppedFrames;
    public final long totalInitialAudioFormatBitrate;
    public final long totalInitialVideoFormatBitrate;
    public final int totalInitialVideoFormatHeight;
    public final int totalPauseBufferCount;
    public final int totalPauseCount;
    public final int totalRebufferCount;
    public final int totalSeekCount;
    public final long totalValidJoinTimeMs;
    public final long totalVideoFormatBitrateTimeMs;
    public final long totalVideoFormatBitrateTimeProduct;
    public final long totalVideoFormatHeightTimeMs;
    public final long totalVideoFormatHeightTimeProduct;
    public final int validJoinTimeCount;
    public final List<EventTimeAndFormat> videoFormatHistory;

    public static final class EventTimeAndException {
        public final AnalyticsListener.EventTime eventTime;
        public final Exception exception;

        public EventTimeAndException(AnalyticsListener.EventTime eventTime, Exception exc) {
            this.eventTime = eventTime;
            this.exception = exc;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || EventTimeAndException.class != obj.getClass()) {
                return false;
            }
            EventTimeAndException eventTimeAndException = (EventTimeAndException) obj;
            if (this.eventTime.equals(eventTimeAndException.eventTime)) {
                return this.exception.equals(eventTimeAndException.exception);
            }
            return false;
        }

        public int hashCode() {
            return this.exception.hashCode() + (this.eventTime.hashCode() * 31);
        }
    }

    public static final class EventTimeAndFormat {
        public final AnalyticsListener.EventTime eventTime;
        public final Format format;

        public EventTimeAndFormat(AnalyticsListener.EventTime eventTime, Format format) {
            this.eventTime = eventTime;
            this.format = format;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj != null && EventTimeAndFormat.class == obj.getClass()) {
                EventTimeAndFormat eventTimeAndFormat = (EventTimeAndFormat) obj;
                if (!this.eventTime.equals(eventTimeAndFormat.eventTime)) {
                    return false;
                }
                Format format = this.format;
                Format format2 = eventTimeAndFormat.format;
                if (format != null) {
                    return format.equals(format2);
                }
                if (format2 == null) {
                    return true;
                }
            }
            return false;
        }

        public int hashCode() {
            int iHashCode = this.eventTime.hashCode() * 31;
            Format format = this.format;
            return iHashCode + (format != null ? format.hashCode() : 0);
        }
    }

    public static final class EventTimeAndPlaybackState {
        public final AnalyticsListener.EventTime eventTime;
        public final int playbackState;

        public EventTimeAndPlaybackState(AnalyticsListener.EventTime eventTime, int i6) {
            this.eventTime = eventTime;
            this.playbackState = i6;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || EventTimeAndPlaybackState.class != obj.getClass()) {
                return false;
            }
            EventTimeAndPlaybackState eventTimeAndPlaybackState = (EventTimeAndPlaybackState) obj;
            if (this.playbackState != eventTimeAndPlaybackState.playbackState) {
                return false;
            }
            return this.eventTime.equals(eventTimeAndPlaybackState.eventTime);
        }

        public int hashCode() {
            return (this.eventTime.hashCode() * 31) + this.playbackState;
        }
    }

    public PlaybackStats(int i6, long[] jArr, List<EventTimeAndPlaybackState> list, List<long[]> list2, long j4, int i7, int i8, int i9, int i10, long j6, int i11, int i12, int i13, int i14, int i15, long j7, int i16, List<EventTimeAndFormat> list3, List<EventTimeAndFormat> list4, long j8, long j9, long j10, long j11, long j12, long j13, int i17, int i18, int i19, long j14, int i20, long j15, long j16, long j17, long j18, long j19, int i21, int i22, int i23, List<EventTimeAndException> list5, List<EventTimeAndException> list6) {
        this.playbackCount = i6;
        this.playbackStateDurationsMs = jArr;
        this.playbackStateHistory = Collections.unmodifiableList(list);
        this.mediaTimeHistory = Collections.unmodifiableList(list2);
        this.firstReportedTimeMs = j4;
        this.foregroundPlaybackCount = i7;
        this.abandonedBeforeReadyCount = i8;
        this.endedCount = i9;
        this.backgroundJoiningCount = i10;
        this.totalValidJoinTimeMs = j6;
        this.validJoinTimeCount = i11;
        this.totalPauseCount = i12;
        this.totalPauseBufferCount = i13;
        this.totalSeekCount = i14;
        this.totalRebufferCount = i15;
        this.maxRebufferTimeMs = j7;
        this.adPlaybackCount = i16;
        this.videoFormatHistory = Collections.unmodifiableList(list3);
        this.audioFormatHistory = Collections.unmodifiableList(list4);
        this.totalVideoFormatHeightTimeMs = j8;
        this.totalVideoFormatHeightTimeProduct = j9;
        this.totalVideoFormatBitrateTimeMs = j10;
        this.totalVideoFormatBitrateTimeProduct = j11;
        this.totalAudioFormatTimeMs = j12;
        this.totalAudioFormatBitrateTimeProduct = j13;
        this.initialVideoFormatHeightCount = i17;
        this.initialVideoFormatBitrateCount = i18;
        this.totalInitialVideoFormatHeight = i19;
        this.totalInitialVideoFormatBitrate = j14;
        this.initialAudioFormatBitrateCount = i20;
        this.totalInitialAudioFormatBitrate = j15;
        this.totalBandwidthTimeMs = j16;
        this.totalBandwidthBytes = j17;
        this.totalDroppedFrames = j18;
        this.totalAudioUnderruns = j19;
        this.fatalErrorPlaybackCount = i21;
        this.fatalErrorCount = i22;
        this.nonFatalErrorCount = i23;
        this.fatalErrorHistory = Collections.unmodifiableList(list5);
        this.nonFatalErrorHistory = Collections.unmodifiableList(list6);
    }

    public static PlaybackStats merge(PlaybackStats... playbackStatsArr) {
        PlaybackStats[] playbackStatsArr2 = playbackStatsArr;
        int i6 = 16;
        long[] jArr = new long[16];
        int length = playbackStatsArr2.length;
        int i7 = 0;
        int i8 = 0;
        int i9 = 0;
        int i10 = 0;
        int i11 = 0;
        int i12 = 0;
        int i13 = 0;
        int i14 = 0;
        int i15 = 0;
        int i16 = 0;
        int i17 = 0;
        int i18 = 0;
        int i19 = 0;
        int i20 = 0;
        int i21 = 0;
        long j4 = 0;
        long j6 = 0;
        long j7 = 0;
        long j8 = 0;
        long j9 = 0;
        long j10 = 0;
        long j11 = 0;
        long j12 = 0;
        long j13 = 0;
        long j14 = 0;
        long j15 = -1;
        long j16 = -1;
        long j17 = -1;
        long jMax = C.TIME_UNSET;
        int i22 = -1;
        long jMin = C.TIME_UNSET;
        long j18 = C.TIME_UNSET;
        int i23 = 0;
        int i24 = 0;
        int i25 = 0;
        while (i23 < length) {
            long j19 = j15;
            PlaybackStats playbackStats = playbackStatsArr2[i23];
            i7 += playbackStats.playbackCount;
            int i26 = 0;
            while (i26 < i6) {
                jArr[i26] = jArr[i26] + playbackStats.playbackStateDurationsMs[i26];
                i26++;
                i6 = 16;
            }
            if (jMin == C.TIME_UNSET) {
                jMin = playbackStats.firstReportedTimeMs;
            } else {
                long j20 = playbackStats.firstReportedTimeMs;
                if (j20 != C.TIME_UNSET) {
                    jMin = Math.min(jMin, j20);
                }
            }
            i8 += playbackStats.foregroundPlaybackCount;
            i24 += playbackStats.abandonedBeforeReadyCount;
            i25 += playbackStats.endedCount;
            i9 += playbackStats.backgroundJoiningCount;
            if (j18 == C.TIME_UNSET) {
                j18 = playbackStats.totalValidJoinTimeMs;
            } else {
                long j21 = playbackStats.totalValidJoinTimeMs;
                if (j21 != C.TIME_UNSET) {
                    j18 += j21;
                }
            }
            i10 += playbackStats.validJoinTimeCount;
            i11 += playbackStats.totalPauseCount;
            i12 += playbackStats.totalPauseBufferCount;
            i13 += playbackStats.totalSeekCount;
            i14 += playbackStats.totalRebufferCount;
            if (jMax == C.TIME_UNSET) {
                jMax = playbackStats.maxRebufferTimeMs;
            } else {
                long j22 = playbackStats.maxRebufferTimeMs;
                if (j22 != C.TIME_UNSET) {
                    jMax = Math.max(jMax, j22);
                }
            }
            i15 += playbackStats.adPlaybackCount;
            j4 += playbackStats.totalVideoFormatHeightTimeMs;
            j6 += playbackStats.totalVideoFormatHeightTimeProduct;
            j7 += playbackStats.totalVideoFormatBitrateTimeMs;
            j8 += playbackStats.totalVideoFormatBitrateTimeProduct;
            j9 += playbackStats.totalAudioFormatTimeMs;
            j10 += playbackStats.totalAudioFormatBitrateTimeProduct;
            i16 += playbackStats.initialVideoFormatHeightCount;
            i17 += playbackStats.initialVideoFormatBitrateCount;
            if (i22 == -1) {
                i22 = playbackStats.totalInitialVideoFormatHeight;
            } else {
                int i27 = playbackStats.totalInitialVideoFormatHeight;
                if (i27 != -1) {
                    i22 += i27;
                }
            }
            if (j16 == j19) {
                j16 = playbackStats.totalInitialVideoFormatBitrate;
            } else {
                long j23 = playbackStats.totalInitialVideoFormatBitrate;
                if (j23 != j19) {
                    j16 += j23;
                }
            }
            i18 += playbackStats.initialAudioFormatBitrateCount;
            if (j17 == j19) {
                j17 = playbackStats.totalInitialAudioFormatBitrate;
            } else {
                long j24 = playbackStats.totalInitialAudioFormatBitrate;
                if (j24 != j19) {
                    j17 += j24;
                }
            }
            j11 += playbackStats.totalBandwidthTimeMs;
            j12 += playbackStats.totalBandwidthBytes;
            j13 += playbackStats.totalDroppedFrames;
            j14 += playbackStats.totalAudioUnderruns;
            i19 += playbackStats.fatalErrorPlaybackCount;
            i20 += playbackStats.fatalErrorCount;
            i21 += playbackStats.nonFatalErrorCount;
            i23++;
            playbackStatsArr2 = playbackStatsArr;
            j15 = j19;
            i6 = 16;
        }
        long j25 = jMax;
        List list = Collections.EMPTY_LIST;
        return new PlaybackStats(i7, jArr, list, list, jMin, i8, i24, i25, i9, j18, i10, i11, i12, i13, i14, j25, i15, list, list, j4, j6, j7, j8, j9, j10, i16, i17, i22, j16, i18, j17, j11, j12, j13, j14, i19, i20, i21, list, list);
    }

    public float getAbandonedBeforeReadyRatio() {
        int i6 = this.abandonedBeforeReadyCount;
        int i7 = this.playbackCount;
        int i8 = this.foregroundPlaybackCount;
        int i9 = i6 - (i7 - i8);
        if (i8 == 0) {
            return 0.0f;
        }
        return i9 / i8;
    }

    public float getAudioUnderrunRate() {
        long totalPlayTimeMs = getTotalPlayTimeMs();
        if (totalPlayTimeMs == 0) {
            return 0.0f;
        }
        return (this.totalAudioUnderruns * 1000.0f) / totalPlayTimeMs;
    }

    public float getDroppedFramesRate() {
        long totalPlayTimeMs = getTotalPlayTimeMs();
        if (totalPlayTimeMs == 0) {
            return 0.0f;
        }
        return (this.totalDroppedFrames * 1000.0f) / totalPlayTimeMs;
    }

    public float getEndedRatio() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.endedCount / i6;
    }

    public float getFatalErrorRate() {
        long totalPlayTimeMs = getTotalPlayTimeMs();
        if (totalPlayTimeMs == 0) {
            return 0.0f;
        }
        return (this.fatalErrorCount * 1000.0f) / totalPlayTimeMs;
    }

    public float getFatalErrorRatio() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.fatalErrorPlaybackCount / i6;
    }

    public float getJoinTimeRatio() {
        long totalPlayAndWaitTimeMs = getTotalPlayAndWaitTimeMs();
        if (totalPlayAndWaitTimeMs == 0) {
            return 0.0f;
        }
        return getTotalJoinTimeMs() / totalPlayAndWaitTimeMs;
    }

    public int getMeanAudioFormatBitrate() {
        long j4 = this.totalAudioFormatTimeMs;
        if (j4 == 0) {
            return -1;
        }
        return (int) (this.totalAudioFormatBitrateTimeProduct / j4);
    }

    public int getMeanBandwidth() {
        long j4 = this.totalBandwidthTimeMs;
        if (j4 == 0) {
            return -1;
        }
        return (int) ((this.totalBandwidthBytes * 8000) / j4);
    }

    public long getMeanElapsedTimeMs() {
        return this.playbackCount == 0 ? C.TIME_UNSET : getTotalElapsedTimeMs() / ((long) this.playbackCount);
    }

    public int getMeanInitialAudioFormatBitrate() {
        int i6 = this.initialAudioFormatBitrateCount;
        if (i6 == 0) {
            return -1;
        }
        return (int) (this.totalInitialAudioFormatBitrate / ((long) i6));
    }

    public int getMeanInitialVideoFormatBitrate() {
        int i6 = this.initialVideoFormatBitrateCount;
        if (i6 == 0) {
            return -1;
        }
        return (int) (this.totalInitialVideoFormatBitrate / ((long) i6));
    }

    public int getMeanInitialVideoFormatHeight() {
        int i6 = this.initialVideoFormatHeightCount;
        if (i6 == 0) {
            return -1;
        }
        return this.totalInitialVideoFormatHeight / i6;
    }

    public long getMeanJoinTimeMs() {
        int i6 = this.validJoinTimeCount;
        return i6 == 0 ? C.TIME_UNSET : this.totalValidJoinTimeMs / ((long) i6);
    }

    public float getMeanNonFatalErrorCount() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.nonFatalErrorCount / i6;
    }

    public float getMeanPauseBufferCount() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.totalPauseBufferCount / i6;
    }

    public float getMeanPauseCount() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.totalPauseCount / i6;
    }

    public long getMeanPausedTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalPausedTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public long getMeanPlayAndWaitTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalPlayAndWaitTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public long getMeanPlayTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalPlayTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public float getMeanRebufferCount() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.totalRebufferCount / i6;
    }

    public long getMeanRebufferTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalRebufferTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public float getMeanSeekCount() {
        int i6 = this.foregroundPlaybackCount;
        if (i6 == 0) {
            return 0.0f;
        }
        return this.totalSeekCount / i6;
    }

    public long getMeanSeekTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalSeekTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public long getMeanSingleRebufferTimeMs() {
        if (this.totalRebufferCount == 0) {
            return C.TIME_UNSET;
        }
        return (getPlaybackStateDurationMs(7) + getPlaybackStateDurationMs(6)) / ((long) this.totalRebufferCount);
    }

    public long getMeanSingleSeekTimeMs() {
        return this.totalSeekCount == 0 ? C.TIME_UNSET : getTotalSeekTimeMs() / ((long) this.totalSeekCount);
    }

    public float getMeanTimeBetweenFatalErrors() {
        return 1.0f / getFatalErrorRate();
    }

    public float getMeanTimeBetweenNonFatalErrors() {
        return 1.0f / getNonFatalErrorRate();
    }

    public float getMeanTimeBetweenRebuffers() {
        return 1.0f / getRebufferRate();
    }

    public int getMeanVideoFormatBitrate() {
        long j4 = this.totalVideoFormatBitrateTimeMs;
        if (j4 == 0) {
            return -1;
        }
        return (int) (this.totalVideoFormatBitrateTimeProduct / j4);
    }

    public int getMeanVideoFormatHeight() {
        long j4 = this.totalVideoFormatHeightTimeMs;
        if (j4 == 0) {
            return -1;
        }
        return (int) (this.totalVideoFormatHeightTimeProduct / j4);
    }

    public long getMeanWaitTimeMs() {
        return this.foregroundPlaybackCount == 0 ? C.TIME_UNSET : getTotalWaitTimeMs() / ((long) this.foregroundPlaybackCount);
    }

    public long getMediaTimeMsAtRealtimeMs(long j4) {
        if (this.mediaTimeHistory.isEmpty()) {
            return C.TIME_UNSET;
        }
        int i6 = 0;
        while (i6 < this.mediaTimeHistory.size() && this.mediaTimeHistory.get(i6)[0] <= j4) {
            i6++;
        }
        if (i6 == 0) {
            return this.mediaTimeHistory.get(0)[1];
        }
        if (i6 == this.mediaTimeHistory.size()) {
            List<long[]> list = this.mediaTimeHistory;
            return list.get(list.size() - 1)[1];
        }
        int i7 = i6 - 1;
        long j6 = this.mediaTimeHistory.get(i7)[0];
        long j7 = this.mediaTimeHistory.get(i7)[1];
        long j8 = this.mediaTimeHistory.get(i6)[0];
        long j9 = this.mediaTimeHistory.get(i6)[1];
        long j10 = j8 - j6;
        if (j10 == 0) {
            return j7;
        }
        return j7 + ((long) ((j9 - j7) * ((j4 - j6) / j10)));
    }

    public float getNonFatalErrorRate() {
        long totalPlayTimeMs = getTotalPlayTimeMs();
        if (totalPlayTimeMs == 0) {
            return 0.0f;
        }
        return (this.nonFatalErrorCount * 1000.0f) / totalPlayTimeMs;
    }

    public int getPlaybackStateAtTime(long j4) {
        int i6 = 0;
        for (EventTimeAndPlaybackState eventTimeAndPlaybackState : this.playbackStateHistory) {
            if (eventTimeAndPlaybackState.eventTime.realtimeMs > j4) {
                break;
            }
            i6 = eventTimeAndPlaybackState.playbackState;
        }
        return i6;
    }

    public long getPlaybackStateDurationMs(int i6) {
        return this.playbackStateDurationsMs[i6];
    }

    public float getRebufferRate() {
        long totalPlayTimeMs = getTotalPlayTimeMs();
        if (totalPlayTimeMs == 0) {
            return 0.0f;
        }
        return (this.totalRebufferCount * 1000.0f) / totalPlayTimeMs;
    }

    public float getRebufferTimeRatio() {
        long totalPlayAndWaitTimeMs = getTotalPlayAndWaitTimeMs();
        if (totalPlayAndWaitTimeMs == 0) {
            return 0.0f;
        }
        return getTotalRebufferTimeMs() / totalPlayAndWaitTimeMs;
    }

    public float getSeekTimeRatio() {
        long totalPlayAndWaitTimeMs = getTotalPlayAndWaitTimeMs();
        if (totalPlayAndWaitTimeMs == 0) {
            return 0.0f;
        }
        return getTotalSeekTimeMs() / totalPlayAndWaitTimeMs;
    }

    public long getTotalElapsedTimeMs() {
        long j4 = 0;
        for (int i6 = 0; i6 < 16; i6++) {
            j4 += this.playbackStateDurationsMs[i6];
        }
        return j4;
    }

    public long getTotalJoinTimeMs() {
        return getPlaybackStateDurationMs(2);
    }

    public long getTotalPausedTimeMs() {
        return getPlaybackStateDurationMs(7) + getPlaybackStateDurationMs(4);
    }

    public long getTotalPlayAndWaitTimeMs() {
        return getTotalWaitTimeMs() + getTotalPlayTimeMs();
    }

    public long getTotalPlayTimeMs() {
        return getPlaybackStateDurationMs(3);
    }

    public long getTotalRebufferTimeMs() {
        return getPlaybackStateDurationMs(6);
    }

    public long getTotalSeekTimeMs() {
        return getPlaybackStateDurationMs(5);
    }

    public long getTotalWaitTimeMs() {
        return getPlaybackStateDurationMs(5) + getPlaybackStateDurationMs(6) + getPlaybackStateDurationMs(2);
    }

    public float getWaitTimeRatio() {
        long totalPlayAndWaitTimeMs = getTotalPlayAndWaitTimeMs();
        if (totalPlayAndWaitTimeMs == 0) {
            return 0.0f;
        }
        return getTotalWaitTimeMs() / totalPlayAndWaitTimeMs;
    }
}
