blob: 427d974bc4dcb1d06b33401bf1dca4d1142305bf [file] [log] [blame]
RUN(video.src = URL.createObjectURL(source))
EVENT(sourceopen)
RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
RUN(sourceBuffer.appendBuffer(initSegment))
EVENT(updateend)
RUN(internals.setMaximumQueueDepthForTrackID(sourceBuffer, 1, 3))
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == '1') OK
RUN(video.currentTime = 4)
EVENT(seeked)
EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == '8') OK
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == '7') OK
END OF TEST