| <title>mock-media-source</title> |
| <script src="mock-media-source.js"></script> |
| <script src="../video-test.js"></script> |
| internals.initializeMockMediaSource(); |
| source = new MediaSource(); |
| waitForEventOn(source, 'sourceopen', sourceOpen); |
| run('video.src = URL.createObjectURL(source)'); |
| run('sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock")'); |
| waitForEventOn(sourceBuffer, 'updatestart'); |
| waitForEventOn(sourceBuffer, 'update'); |
| waitForEventOn(sourceBuffer, 'error'); |
| waitForEventOn(sourceBuffer, 'updateend'); |
| waitForEventOn(source, 'sourceended', endTest); |
| initSegment = makeAnInvalidBox(); |
| run('sourceBuffer.appendBuffer(initSegment)'); |
| <body onload="runTest()"> |