blob: 3248ab816c9fd31b62f86eec3aa1d3ec8b90d41a [file] [log] [blame]
RUN(video.src = URL.createObjectURL(source))
EVENT(sourceopen)
RUN(source.duration = loader.duration())
RUN(sourceBuffer = source.addSourceBuffer(loader.type()))
RUN(sourceBuffer.appendBuffer(loader.initSegment()))
EVENT(update)
Append a media segment.
RUN(sourceBuffer.appendBuffer(loader.mediaSegment(0)))
EVENT(update)
Remove a range, then remove SourceBuffer from its MediaSource. Should not crash.
RUN(sourceBuffer.remove(0, source.duration))
RUN(source.removeSourceBuffer(sourceBuffer))
END OF TEST