blob: 86cc993717a16a0370a27a890ca6e7a27c6d23a9 [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 the SourceBuffer from its MediaSource, then unload the video element. Should not crash.
RUN(source.removeSourceBuffer(sourceBuffer))
RUN(sourceBuffer = null)
RUN(gc())
RUN(video.src = "")
RUN(video.load())
END OF TEST