blob: 8dfc3360b1f0b2147bdfb83ce685d8ff1ee5e77f [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)
Test that a replacement initialization segment containing a track with the same codec but a different trackID succeeds.
RUN(sourceBuffer.appendBuffer(initSegment))
EVENT(updateend)
Test that a replacement initialization segment containing a track with a different codec but the same trackID fails.
RUN(sourceBuffer.appendBuffer(initSegment))
EVENT(error)
EVENT(updateend)
EVENT(sourceended)
END OF TEST