Diff
Modified: trunk/LayoutTests/ChangeLog (237650 => 237651)
--- trunk/LayoutTests/ChangeLog 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/ChangeLog 2018-10-31 21:04:07 UTC (rev 237651)
@@ -1,3 +1,64 @@
+2018-10-31 Alicia Boya GarcĂa <[email protected]>
+
+ [MSE] WebKit tests: Use fixed point in makeASample()
+ https://bugs.webkit.org/show_bug.cgi?id=191128
+
+ Reviewed by Jer Noble.
+
+ This patch modifies the utility function makeASample() so as to accept
+ time values in arbitrary time scales.
+
+ Previously makeASample() accepted optionally a time scale, but still
+ required to receive all time values as seconds, therefore requiring a
+ division at call time in order to use the function, which could cause
+ rounding errors (see https://bugs.webkit.org/show_bug.cgi?id=190085#c20).
+
+ * media/media-source/media-source-append-acb-no-frame-lost-expected.txt:
+ * media/media-source/media-source-append-acb-no-frame-lost.html:
+ * media/media-source/media-source-append-buffer-with-append-window.html:
+ * media/media-source/media-source-append-media-segment-without-init.html:
+ * media/media-source/media-source-append-nonsync-sample-after-abort.html:
+ * media/media-source/media-source-append-out-of-order.html:
+ * media/media-source/media-source-append-overlapping-dts-expected.txt:
+ * media/media-source/media-source-append-overlapping-dts.html:
+ * media/media-source/media-source-canplaythrough.html:
+ * media/media-source/media-source-duplicate-seeked.html:
+ * media/media-source/media-source-duration-after-append.html:
+ * media/media-source/media-source-end-of-stream-buffered.html:
+ * media/media-source/media-source-end-of-stream-readyState.html:
+ * media/media-source/media-source-fastseek.html:
+ * media/media-source/media-source-fudge-factor.html:
+ * media/media-source/media-source-monitor-source-buffers.html:
+ * media/media-source/media-source-overlapping-append-buffered.html:
+ * media/media-source/media-source-overlapping-append-expected.txt:
+ * media/media-source/media-source-overlapping-append.html:
+ * media/media-source/media-source-overlapping-decodetime-expected.txt:
+ * media/media-source/media-source-overlapping-decodetime.html:
+ * media/media-source/media-source-play.html:
+ * media/media-source/media-source-range-end-frame-not-removed-expected.txt:
+ * media/media-source/media-source-range-end-frame-not-removed.html:
+ * media/media-source/media-source-range-start-frame-replaced-expected.txt:
+ * media/media-source/media-source-range-start-frame-replaced.html:
+ * media/media-source/media-source-remove-decodeorder-crash.html:
+ * media/media-source/media-source-remove-too-much.html:
+ * media/media-source/media-source-remove.html:
+ * media/media-source/media-source-restrictions.html:
+ * media/media-source/media-source-sample-wrong-track-id.html:
+ * media/media-source/media-source-seek-back-expected.txt:
+ * media/media-source/media-source-seek-back.html:
+ * media/media-source/media-source-seek-complete.html:
+ * media/media-source/media-source-sequence-timestamps-expected.txt:
+ * media/media-source/media-source-sequence-timestamps.html:
+ * media/media-source/media-source-small-gap.html:
+ * media/media-source/media-source-timeoffset-expected.txt:
+ * media/media-source/media-source-timeoffset.html:
+ * media/media-source/media-source-timestampoffset-rounding-error.html:
+ * media/media-source/media-source-timestampoffset-then-zero-expected.txt:
+ * media/media-source/media-source-timestampoffset-then-zero.html:
+ * media/media-source/media-source-video-playback-quality.html:
+ * media/media-source/mock-media-source.js:
+ (makeASample):
+
2018-10-31 YUHAN WU <[email protected]>
MediaRecorder should fire dataavailable event when all tracks are ended and stop() is called
Modified: trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -12,35 +12,35 @@
EVENT(updateend)
EXPECTED (bufferedSamples.length == '30') OK
EXPECTED (enqueuedSamples.length == '30') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({6000/1000 = 6.000000}), DTS({6000/1000 = 6.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({7000/1000 = 7.000000}), DTS({7000/1000 = 7.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({8000/1000 = 8.000000}), DTS({8000/1000 = 8.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({9000/1000 = 9.000000}), DTS({9000/1000 = 9.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({10000/1000 = 10.000000}), DTS({10000/1000 = 10.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({11000/1000 = 11.000000}), DTS({11000/1000 = 11.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({12000/1000 = 12.000000}), DTS({12000/1000 = 12.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({13000/1000 = 13.000000}), DTS({13000/1000 = 13.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({14000/1000 = 14.000000}), DTS({14000/1000 = 14.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({15000/1000 = 15.000000}), DTS({15000/1000 = 15.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({16000/1000 = 16.000000}), DTS({16000/1000 = 16.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({17000/1000 = 17.000000}), DTS({17000/1000 = 17.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({18000/1000 = 18.000000}), DTS({18000/1000 = 18.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({19000/1000 = 19.000000}), DTS({19000/1000 = 19.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({20000/1000 = 20.000000}), DTS({20000/1000 = 20.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({21000/1000 = 21.000000}), DTS({21000/1000 = 21.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({22000/1000 = 22.000000}), DTS({22000/1000 = 22.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({23000/1000 = 23.000000}), DTS({23000/1000 = 23.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({24000/1000 = 24.000000}), DTS({24000/1000 = 24.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({25000/1000 = 25.000000}), DTS({25000/1000 = 25.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({26000/1000 = 26.000000}), DTS({26000/1000 = 26.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({27000/1000 = 27.000000}), DTS({27000/1000 = 27.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({28000/1000 = 28.000000}), DTS({28000/1000 = 28.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({29000/1000 = 29.000000}), DTS({29000/1000 = 29.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({6/1 = 6.000000}), DTS({6/1 = 6.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({7/1 = 7.000000}), DTS({7/1 = 7.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({8/1 = 8.000000}), DTS({8/1 = 8.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({9/1 = 9.000000}), DTS({9/1 = 9.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({10/1 = 10.000000}), DTS({10/1 = 10.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({11/1 = 11.000000}), DTS({11/1 = 11.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({12/1 = 12.000000}), DTS({12/1 = 12.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({13/1 = 13.000000}), DTS({13/1 = 13.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({14/1 = 14.000000}), DTS({14/1 = 14.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({15/1 = 15.000000}), DTS({15/1 = 15.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({16/1 = 16.000000}), DTS({16/1 = 16.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({17/1 = 17.000000}), DTS({17/1 = 17.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({18/1 = 18.000000}), DTS({18/1 = 18.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({19/1 = 19.000000}), DTS({19/1 = 19.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({20/1 = 20.000000}), DTS({20/1 = 20.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({21/1 = 21.000000}), DTS({21/1 = 21.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({22/1 = 22.000000}), DTS({22/1 = 22.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({23/1 = 23.000000}), DTS({23/1 = 23.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({24/1 = 24.000000}), DTS({24/1 = 24.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({25/1 = 25.000000}), DTS({25/1 = 25.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({26/1 = 26.000000}), DTS({26/1 = 26.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({27/1 = 27.000000}), DTS({27/1 = 27.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({28/1 = 28.000000}), DTS({28/1 = 28.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({29/1 = 29.000000}), DTS({29/1 = 29.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-acb-no-frame-lost.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -17,7 +17,7 @@
function syncSampleRun(start, end) {
const samples = [];
for (let time = start; time < end; time++)
- samples.push(makeASample(time, time, 1, 1, time === start ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE));
+ samples.push(makeASample(time, time, 1, 1, 1, time === start ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE));
return concatenateSamples(samples);
}
Modified: trunk/LayoutTests/media/media-source/media-source-append-buffer-with-append-window.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-buffer-with-append-window.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-buffer-with-append-window.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -18,22 +18,22 @@
mediaSegment = concatenateSamples([
makeAInit(0, [makeATrack(1, 'mock', TRACK_KIND.VIDEO)])
- , makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0)
- , makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC, 0)
- , makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(6, 6, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(8, 8, 1, 1, SAMPLE_FLAG.SYNC, 0)
- , makeASample(9, 9, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(10, 10, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(11, 11, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(12, 12, 1, 1, SAMPLE_FLAG.SYNC, 0)
- , makeASample(13, 13, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(14, 14, 1, 1, SAMPLE_FLAG.NONE, 0)
- , makeASample(15, 15, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0)
+ , makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC, 0)
+ , makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(8, 8, 1, 1, 1, SAMPLE_FLAG.SYNC, 0)
+ , makeASample(9, 9, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(10, 10, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(11, 11, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(12, 12, 1, 1, 1, SAMPLE_FLAG.SYNC, 0)
+ , makeASample(13, 13, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(14, 14, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
+ , makeASample(15, 15, 1, 1, 1, SAMPLE_FLAG.NONE, 0)
]);
source = new MediaSource();
Modified: trunk/LayoutTests/media/media-source/media-source-append-media-segment-without-init.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-media-segment-without-init.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-media-segment-without-init.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -28,8 +28,8 @@
// initSegment = makeAInit(0, [makeATrack(1, 'mock', TRACK_KIND.VIDEO)]);
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
// Note: if code correctly handles sample without init, it will go through Segment Parser Loop
Modified: trunk/LayoutTests/media/media-source/media-source-append-nonsync-sample-after-abort.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-nonsync-sample-after-abort.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-nonsync-sample-after-abort.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -43,7 +43,7 @@
}
sourceBuffer.appendBuffer(
- makeASample(nextRequest, nextRequest, 1, 1,
+ makeASample(nextRequest, nextRequest, 1, 1, 1,
(nextRequest == 0) ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE
));
Modified: trunk/LayoutTests/media/media-source/media-source-append-out-of-order.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-out-of-order.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-out-of-order.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -29,7 +29,7 @@
function syncSampleRun(start, end) {
const samples = [];
for (let time = start; time < end; time++)
- samples.push(makeASample(time, time, 1, 1, time === start ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE));
+ samples.push(makeASample(time, time, 1, 1, 1, time === start ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE));
return concatenateSamples(samples);
}
Modified: trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -10,14 +10,14 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '9') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({6000/1000 = 6.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({7000/1000 = 7.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({4000/1000 = 4.000000}), DTS({6000/1000 = 6.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({5000/1000 = 5.000000}), DTS({7000/1000 = 7.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({6/1 = 6.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({7/1 = 7.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({4/1 = 4.000000}), DTS({6/1 = 6.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({5/1 = 5.000000}), DTS({7/1 = 7.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-append-overlapping-dts.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -27,23 +27,23 @@
await waitFor(sourceBuffer, 'updateend');
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
]);
run('sourceBuffer.appendBuffer(samples)');
await waitFor(sourceBuffer, 'updateend');
samples = concatenateSamples([
- makeASample(6, 4, 1, 1, SAMPLE_FLAG.SYNC, 1),
- makeASample(7, 5, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(4, 6, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(5, 7, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(6, 4, 1, 1, 1, SAMPLE_FLAG.SYNC, 1),
+ makeASample(7, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(4, 6, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(5, 7, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
]);
run('sourceBuffer.appendBuffer(samples)');
await waitFor(sourceBuffer, 'updateend');
Modified: trunk/LayoutTests/media/media-source/media-source-canplaythrough.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-canplaythrough.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-canplaythrough.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -42,7 +42,7 @@
{
source.activeSourceBuffers.length;
if (nextRequest < totalLength) {
- sourceBuffer.appendBuffer(makeASample(nextRequest, nextRequest, 1, 1, SAMPLE_FLAG.SYNC));
+ sourceBuffer.appendBuffer(makeASample(nextRequest, nextRequest, 1, 1, 1, SAMPLE_FLAG.SYNC));
++nextRequest;
}
}
Modified: trunk/LayoutTests/media/media-source/media-source-duplicate-seeked.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-duplicate-seeked.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-duplicate-seeked.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -35,7 +35,7 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(0, 1, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
waitForEventOn(sourceBuffer, 'updateend', seek, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-duration-after-append.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-duration-after-append.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-duration-after-append.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -30,7 +30,7 @@
function loadSamples() {
testExpected('video.duration', 0);
- sample = makeASample(0, 0, 10, 1, SAMPLE_FLAG.SYNC);
+ sample = makeASample(0, 0, 10, 1, 1, SAMPLE_FLAG.SYNC);
waitForEventOn(sourceBuffer, 'updateend', checkDuration, false, true);
run('sourceBuffer.appendBuffer(sample)');
}
Modified: trunk/LayoutTests/media/media-source/media-source-end-of-stream-buffered.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-end-of-stream-buffered.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-end-of-stream-buffered.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -27,7 +27,7 @@
waitForEventOn(sourceBuffer1, 'updateend', updateEndInit1);
mediaSegment = concatenateSamples([
makeAInit(10, [makeATrack(1, 'mock', TRACK_KIND.AUDIO)]),
- makeASample(0, 0, 10, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(0, 0, 10, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
run('sourceBuffer1.appendBuffer(mediaSegment)');
}
@@ -37,7 +37,7 @@
waitForEventOn(sourceBuffer2, 'updateend', updateEndInit2);
mediaSegment = concatenateSamples([
makeAInit(10, [makeATrack(1, 'mock', TRACK_KIND.VIDEO)]),
- makeASample(0, 0, 5, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(0, 0, 5, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
run('sourceBuffer2.appendBuffer(mediaSegment)');
}
Modified: trunk/LayoutTests/media/media-source/media-source-end-of-stream-readyState.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-end-of-stream-readyState.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-end-of-stream-readyState.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -25,7 +25,7 @@
waitForEventOn(sourceBuffer, 'updateend', updateEnd1, false, true);
mediaSegment = concatenateSamples([
makeAInit(10, [makeATrack(1, 'mock', TRACK_KIND.VIDEO)]),
- makeASample(0, 0, 5, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(0, 0, 5, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
run('sourceBuffer.appendBuffer(mediaSegment)');
Modified: trunk/LayoutTests/media/media-source/media-source-fastseek.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-fastseek.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-fastseek.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -35,14 +35,14 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', play, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-fudge-factor.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-fudge-factor.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-fudge-factor.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -33,7 +33,7 @@
function loadedMetadata() {
consoleWrite('Samples with presentation times after currentTime should not cause loadedData.');
- sourceBuffer.appendBuffer(makeASample(0.5, 0.5, 0.5, 1, SAMPLE_FLAG.SYNC));
+ sourceBuffer.appendBuffer(makeASample(500, 500, 500, 1000, 1, SAMPLE_FLAG.SYNC));
setTimeout(notLoadedData, 50);
}
@@ -41,7 +41,7 @@
testExpected('video.readyState', HTMLMediaElement.HAVE_METADATA);
consoleWrite('Samples with presentation times very close to currentTime should cause loadedData.');
- sourceBuffer.appendBuffer(makeASample(0.01, 0.01, 0.01, 1, SAMPLE_FLAG.SYNC));
+ sourceBuffer.appendBuffer(makeASample(10, 10, 10, 1000, 1, SAMPLE_FLAG.SYNC));
waitForEvent('loadeddata', loadedData);
}
@@ -49,7 +49,7 @@
testExpected('video.readyState', HTMLMediaElement.HAVE_CURRENT_DATA);
consoleWrite('Samples with presentation end times very close to currentTime should not cause canPlay.');
- sourceBuffer.appendBuffer(makeASample(0.02, 0.02, 0.01, 1, SAMPLE_FLAG.SYNC));
+ sourceBuffer.appendBuffer(makeASample(20, 20, 10, 1000, 1, SAMPLE_FLAG.SYNC));
setTimeout(notCanPlay, 50);
}
@@ -57,7 +57,7 @@
testExpected('video.readyState', HTMLMediaElement.HAVE_CURRENT_DATA);
consoleWrite('Continuous samples with presentation end times after currentTime should cause canPlay.');
- sourceBuffer.appendBuffer(makeASample(0.03, 0.03, 0.47, 1, SAMPLE_FLAG.SYNC));
+ sourceBuffer.appendBuffer(makeASample(30, 30, 470, 1000, 1, SAMPLE_FLAG.SYNC));
waitForEvent('canplay', canPlay);
}
Modified: trunk/LayoutTests/media/media-source/media-source-monitor-source-buffers.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-monitor-source-buffers.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-monitor-source-buffers.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,7 +34,7 @@
function loadSamples()
{
- sample = makeASample(0, 0, 10, 1, SAMPLE_FLAG.SYNC);
+ sample = makeASample(0, 0, 10, 1, 1, SAMPLE_FLAG.SYNC);
waitForEventOn(sourceBuffer, 'updateend', play, false, true);
run('sourceBuffer.appendBuffer(sample)');
}
Modified: trunk/LayoutTests/media/media-source/media-source-overlapping-append-buffered.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-overlapping-append-buffered.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-overlapping-append-buffered.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -35,12 +35,12 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(1, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(2, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 2, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 3, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(6, 4, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(1, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(2, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(3, 2, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(4, 3, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(6, 4, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', loadMoreSamples, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -48,12 +48,12 @@
function loadMoreSamples() {
samples = concatenateSamples([
- makeASample(1, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(2, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 2, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 3, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(6, 4, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(1, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(2, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(3, 2, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(4, 3, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(6, 4, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', loadComplete, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-overlapping-append-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-overlapping-append-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-overlapping-append-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -7,29 +7,29 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(2)}
-{PTS({2000/1000 = 2.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(2)}
-{PTS({1000/1000 = 1.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(2)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(2)}
-{PTS({5000/1000 = 5.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(2)}
-{PTS({4000/1000 = 4.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(2)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(2)}
+{PTS({2/1 = 2.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(2)}
+{PTS({1/1 = 1.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(2)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(2)}
+{PTS({5/1 = 5.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(2)}
+{PTS({4/1 = 4.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(2)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-overlapping-append.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-overlapping-append.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-overlapping-append.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,12 +34,12 @@
function loadOrderedSamples()
{
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', loadMoreOrderedSamples, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -52,12 +52,12 @@
bufferedSamples.forEach(consoleWrite);
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 1),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 1),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 1),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 1),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
]);
waitForEventOn(sourceBuffer, 'updateend', loadUnorderedSamples, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -70,12 +70,12 @@
bufferedSamples.forEach(consoleWrite);
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 2),
- makeASample(2, 1, 1, 1, SAMPLE_FLAG.NONE, 2),
- makeASample(1, 2, 1, 1, SAMPLE_FLAG.NONE, 2),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 2),
- makeASample(5, 4, 1, 1, SAMPLE_FLAG.NONE, 2),
- makeASample(4, 5, 1, 1, SAMPLE_FLAG.NONE, 2),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 2),
+ makeASample(2, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 2),
+ makeASample(1, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 2),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 2),
+ makeASample(5, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 2),
+ makeASample(4, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 2),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -9,12 +9,12 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '7') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({5000/1000 = 5.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
-{PTS({6000/1000 = 6.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(1)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({5/1 = 5.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
+{PTS({6/1 = 6.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(1)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-overlapping-decodetime.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,12 +34,12 @@
function loadOrderedSamples()
{
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', loadMoreOrderedSamples, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -48,9 +48,9 @@
function loadMoreOrderedSamples()
{
samples = concatenateSamples([
- makeASample(4, 3, 1, 1, SAMPLE_FLAG.SYNC, 1),
- makeASample(5, 4, 1, 1, SAMPLE_FLAG.NONE, 1),
- makeASample(6, 5, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(4, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 1),
+ makeASample(5, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
+ makeASample(6, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 1),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-play.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-play.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-play.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -31,7 +31,7 @@
}
function loadSamples() {
- sample = makeASample(0, 0, 10, 1, SAMPLE_FLAG.SYNC);
+ sample = makeASample(0, 0, 10, 1, 1, SAMPLE_FLAG.SYNC);
waitForEventOn(sourceBuffer, 'updateend', play, false, true);
run('sourceBuffer.appendBuffer(sample)');
}
Modified: trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -9,12 +9,12 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
EXPECTED (sourceBuffer.buffered.length == '1') OK
EXPECTED (sourceBuffer.buffered.start(0) == '0') OK
EXPECTED (sourceBuffer.buffered.end(0) == '6') OK
Modified: trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-range-end-frame-not-removed.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,9 +34,9 @@
function loadSamples1()
{
samples = concatenateSamples([
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', loadSamples2, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -45,9 +45,9 @@
function loadSamples2()
{
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -8,8 +8,8 @@
EVENT(updateend)
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({2000/1000 = 2.000000}), flags(1), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({2/1 = 2.000000}), flags(1), generation(0)}
EXPECTED (sourceBuffer.buffered.length == '1') OK
EXPECTED (sourceBuffer.buffered.start(0) == '0') OK
EXPECTED (sourceBuffer.buffered.end(0) == '3') OK
Modified: trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-range-start-frame-replaced.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,7 +34,7 @@
function loadSamples1()
{
samples = concatenateSamples([
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', loadSamples2, false, true);
run('sourceBuffer.appendBuffer(samples)');
@@ -44,8 +44,8 @@
{
samples = concatenateSamples([
// New Coded Frame Group (DTS went backwards)
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 2, 1, SAMPLE_FLAG.SYNC, 0), // duration = 2
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 2, 1, 1, SAMPLE_FLAG.SYNC, 0), // duration = 2
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-remove-decodeorder-crash.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-remove-decodeorder-crash.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-remove-decodeorder-crash.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -29,9 +29,9 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(2, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(1, 2, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(2, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(1, 2, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
waitForEventOn(sourceBuffer, 'updateend', remove, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-remove-too-much.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-remove-too-much.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-remove-too-much.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -29,15 +29,15 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(8, 8, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(8, 8, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
waitForEventOn(sourceBuffer, 'updateend', remove, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-remove.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-remove.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-remove.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -29,14 +29,14 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', remove, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-restrictions.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-restrictions.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-restrictions.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -43,14 +43,14 @@
function loadSamples() {
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
waitForEventOn(sourceBuffer, 'updateend', updateEnd, false, true);
Modified: trunk/LayoutTests/media/media-source/media-source-sample-wrong-track-id.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-sample-wrong-track-id.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-sample-wrong-track-id.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -27,8 +27,8 @@
consoleWrite('Append a set of invalid, overlapping samples. Should not crash.')
mediaSegment = concatenateSamples([
makeAInit(2, [makeATrack(1, 'mock', TRACK_KIND.AUDIO)]),
- makeASample(1, 1, 1, 2, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 0, 2, 2, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 2, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 0, 2, 1, 2, SAMPLE_FLAG.SYNC, 0),
]);
run('sourceBuffer.appendBuffer(mediaSegment)');
}
Modified: trunk/LayoutTests/media/media-source/media-source-seek-back-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-seek-back-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-seek-back-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -12,6 +12,6 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(seeked)
EXPECTED (enqueuedSamples.length == '1') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-seek-back.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-seek-back.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-seek-back.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -36,7 +36,7 @@
function loadSamples()
{
samples = concatenateSamples([
- makeASample(10, 10, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(10, 10, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
consoleWrite('Append a sample from 10 -> 11')
waitForEventOn(sourceBuffer, 'updateend', seek, false, true);
@@ -52,7 +52,7 @@
function seeking()
{
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
consoleWrite('Append a sample from 0 -> 1')
waitForEvent('seeked', seeked);
Modified: trunk/LayoutTests/media/media-source/media-source-seek-complete.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-seek-complete.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-seek-complete.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -38,7 +38,7 @@
function loadSamples()
{
samples = concatenateSamples([
- makeASample(10, 10, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(10, 10, 1, 1, 1, SAMPLE_FLAG.SYNC),
]);
waitForEventOn(sourceBuffer, 'updateend', seek, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-sequence-timestamps-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-sequence-timestamps-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-sequence-timestamps-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -7,11 +7,11 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-sequence-timestamps.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-sequence-timestamps.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-sequence-timestamps.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -39,12 +39,12 @@
{
// In "sequence" mode, the samples' timestamps are not used
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(8, 8, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(10, 10, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(8, 8, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(10, 10, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/media-source-small-gap.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-small-gap.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-small-gap.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -31,14 +31,14 @@
const maximumGap = Math.floor(2002 / 24000 * 1000) / 1000;
samples = concatenateSamples([
- makeASample(0, 0, 1 - maximumGap, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1 - maximumGap / 2, 1, SAMPLE_FLAG.NONE),
- makeASample(2, 2, 1 - maximumGap / 3, 1, SAMPLE_FLAG.NONE),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.NONE),
- makeASample(4, 4, 1 - maximumGap, 1, SAMPLE_FLAG.SYNC),
- makeASample(5, 5, 1 - maximumGap / 10, 1, SAMPLE_FLAG.NONE),
- makeASample(6, 6, 0.99, 1, SAMPLE_FLAG.NONE),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample( 0, 0, 1000 * (1 - maximumGap), 1000, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1000, 1000, 1000 * (1 - maximumGap / 2), 1000, 1, SAMPLE_FLAG.NONE),
+ makeASample(2000, 2000, 1000 * (1 - maximumGap / 3), 1000, 1, SAMPLE_FLAG.NONE),
+ makeASample(3000, 3000, 1000, 1000, 1, SAMPLE_FLAG.NONE),
+ makeASample(4000, 4000, 1000 * (1 - maximumGap), 1000, 1, SAMPLE_FLAG.SYNC),
+ makeASample(5000, 5000, 1000 * (1 - maximumGap / 10), 1000, 1, SAMPLE_FLAG.NONE),
+ makeASample(6000, 6000, 1000 * (0.99), 1000, 1, SAMPLE_FLAG.NONE),
+ makeASample(7000, 7000, 1000, 1000, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', checkBuffered, false, true);
Modified: trunk/LayoutTests/media/media-source/media-source-timeoffset-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-timeoffset-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-timeoffset-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -8,11 +8,11 @@
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
EXPECTED (bufferedSamples.length == '6') OK
-{PTS({10000/1000 = 10.000000}), DTS({10000/1000 = 10.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({11000/1000 = 11.000000}), DTS({11000/1000 = 11.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({12000/1000 = 12.000000}), DTS({12000/1000 = 12.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({13000/1000 = 13.000000}), DTS({13000/1000 = 13.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({14000/1000 = 14.000000}), DTS({14000/1000 = 14.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
-{PTS({15000/1000 = 15.000000}), DTS({15000/1000 = 15.000000}), duration({1000/1000 = 1.000000}), flags(0), generation(0)}
+{PTS({10/1 = 10.000000}), DTS({10/1 = 10.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({11/1 = 11.000000}), DTS({11/1 = 11.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({12/1 = 12.000000}), DTS({12/1 = 12.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({13/1 = 13.000000}), DTS({13/1 = 13.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({14/1 = 14.000000}), DTS({14/1 = 14.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
+{PTS({15/1 = 15.000000}), DTS({15/1 = 15.000000}), duration({1/1 = 1.000000}), flags(0), generation(0)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-timeoffset.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-timeoffset.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-timeoffset.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -34,12 +34,12 @@
function loadSamples()
{
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(3, 3, 1, 1, SAMPLE_FLAG.SYNC, 0),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.NONE, 0),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(3, 3, 1, 1, 1, SAMPLE_FLAG.SYNC, 0),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.NONE, 0),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.timestampOffset = 10');
Modified: trunk/LayoutTests/media/media-source/media-source-timestampoffset-rounding-error.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-timestampoffset-rounding-error.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-timestampoffset-rounding-error.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -19,7 +19,7 @@
const samples = [];
for (let time = 0; time < 2 * timeScale; time++)
- samples.push(makeASample(time / timeScale, time / timeScale, 1 / timeScale, 1, time % 2 === 0 ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE, generation, timeScale));
+ samples.push(makeASample(time, time, 1, timeScale, 1, time % 2 === 0 ? SAMPLE_FLAG.SYNC : SAMPLE_FLAG.NONE, generation));
return concatenateSamples([init].concat(samples));
}
Modified: trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero-expected.txt (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero-expected.txt 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero-expected.txt 2018-10-31 21:04:07 UTC (rev 237651)
@@ -6,54 +6,54 @@
RUN(sourceBuffer.appendBuffer(makeSimpleAudio(0, 20, 0)))
EVENT(updateend)
After first append:
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({6000/1000 = 6.000000}), DTS({6000/1000 = 6.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({7000/1000 = 7.000000}), DTS({7000/1000 = 7.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({8000/1000 = 8.000000}), DTS({8000/1000 = 8.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({9000/1000 = 9.000000}), DTS({9000/1000 = 9.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({10000/1000 = 10.000000}), DTS({10000/1000 = 10.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({11000/1000 = 11.000000}), DTS({11000/1000 = 11.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({12000/1000 = 12.000000}), DTS({12000/1000 = 12.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({13000/1000 = 13.000000}), DTS({13000/1000 = 13.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({14000/1000 = 14.000000}), DTS({14000/1000 = 14.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({15000/1000 = 15.000000}), DTS({15000/1000 = 15.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({16000/1000 = 16.000000}), DTS({16000/1000 = 16.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({17000/1000 = 17.000000}), DTS({17000/1000 = 17.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({18000/1000 = 18.000000}), DTS({18000/1000 = 18.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({19000/1000 = 19.000000}), DTS({19000/1000 = 19.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({20000/1000 = 20.000000}), DTS({20000/1000 = 20.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({21000/1000 = 21.000000}), DTS({21000/1000 = 21.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({22000/1000 = 22.000000}), DTS({22000/1000 = 22.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({23000/1000 = 23.000000}), DTS({23000/1000 = 23.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({24000/1000 = 24.000000}), DTS({24000/1000 = 24.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({6/1 = 6.000000}), DTS({6/1 = 6.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({7/1 = 7.000000}), DTS({7/1 = 7.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({8/1 = 8.000000}), DTS({8/1 = 8.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({9/1 = 9.000000}), DTS({9/1 = 9.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({10/1 = 10.000000}), DTS({10/1 = 10.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({11/1 = 11.000000}), DTS({11/1 = 11.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({12/1 = 12.000000}), DTS({12/1 = 12.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({13/1 = 13.000000}), DTS({13/1 = 13.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({14/1 = 14.000000}), DTS({14/1 = 14.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({15/1 = 15.000000}), DTS({15/1 = 15.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({16/1 = 16.000000}), DTS({16/1 = 16.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({17/1 = 17.000000}), DTS({17/1 = 17.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({18/1 = 18.000000}), DTS({18/1 = 18.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({19/1 = 19.000000}), DTS({19/1 = 19.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({20/1 = 20.000000}), DTS({20/1 = 20.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({21/1 = 21.000000}), DTS({21/1 = 21.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({22/1 = 22.000000}), DTS({22/1 = 22.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({23/1 = 23.000000}), DTS({23/1 = 23.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({24/1 = 24.000000}), DTS({24/1 = 24.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
RUN(sourceBuffer.timestampOffset = 0)
RUN(sourceBuffer.appendBuffer(makeSimpleAudio(0, 20, 1)))
EVENT(updateend)
After second append:
-{PTS({0/1000 = 0.000000}), DTS({0/1000 = 0.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({1000/1000 = 1.000000}), DTS({1000/1000 = 1.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({2000/1000 = 2.000000}), DTS({2000/1000 = 2.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({3000/1000 = 3.000000}), DTS({3000/1000 = 3.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({4000/1000 = 4.000000}), DTS({4000/1000 = 4.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({5000/1000 = 5.000000}), DTS({5000/1000 = 5.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({6000/1000 = 6.000000}), DTS({6000/1000 = 6.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({7000/1000 = 7.000000}), DTS({7000/1000 = 7.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({8000/1000 = 8.000000}), DTS({8000/1000 = 8.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({9000/1000 = 9.000000}), DTS({9000/1000 = 9.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({10000/1000 = 10.000000}), DTS({10000/1000 = 10.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({11000/1000 = 11.000000}), DTS({11000/1000 = 11.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({12000/1000 = 12.000000}), DTS({12000/1000 = 12.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({13000/1000 = 13.000000}), DTS({13000/1000 = 13.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({14000/1000 = 14.000000}), DTS({14000/1000 = 14.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({15000/1000 = 15.000000}), DTS({15000/1000 = 15.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({16000/1000 = 16.000000}), DTS({16000/1000 = 16.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({17000/1000 = 17.000000}), DTS({17000/1000 = 17.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({18000/1000 = 18.000000}), DTS({18000/1000 = 18.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({19000/1000 = 19.000000}), DTS({19000/1000 = 19.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(1)}
-{PTS({20000/1000 = 20.000000}), DTS({20000/1000 = 20.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({21000/1000 = 21.000000}), DTS({21000/1000 = 21.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({22000/1000 = 22.000000}), DTS({22000/1000 = 22.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({23000/1000 = 23.000000}), DTS({23000/1000 = 23.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
-{PTS({24000/1000 = 24.000000}), DTS({24000/1000 = 24.000000}), duration({1000/1000 = 1.000000}), flags(1), generation(0)}
+{PTS({0/1 = 0.000000}), DTS({0/1 = 0.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({1/1 = 1.000000}), DTS({1/1 = 1.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({2/1 = 2.000000}), DTS({2/1 = 2.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({3/1 = 3.000000}), DTS({3/1 = 3.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({4/1 = 4.000000}), DTS({4/1 = 4.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({5/1 = 5.000000}), DTS({5/1 = 5.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({6/1 = 6.000000}), DTS({6/1 = 6.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({7/1 = 7.000000}), DTS({7/1 = 7.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({8/1 = 8.000000}), DTS({8/1 = 8.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({9/1 = 9.000000}), DTS({9/1 = 9.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({10/1 = 10.000000}), DTS({10/1 = 10.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({11/1 = 11.000000}), DTS({11/1 = 11.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({12/1 = 12.000000}), DTS({12/1 = 12.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({13/1 = 13.000000}), DTS({13/1 = 13.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({14/1 = 14.000000}), DTS({14/1 = 14.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({15/1 = 15.000000}), DTS({15/1 = 15.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({16/1 = 16.000000}), DTS({16/1 = 16.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({17/1 = 17.000000}), DTS({17/1 = 17.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({18/1 = 18.000000}), DTS({18/1 = 18.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({19/1 = 19.000000}), DTS({19/1 = 19.000000}), duration({1/1 = 1.000000}), flags(1), generation(1)}
+{PTS({20/1 = 20.000000}), DTS({20/1 = 20.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({21/1 = 21.000000}), DTS({21/1 = 21.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({22/1 = 22.000000}), DTS({22/1 = 22.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({23/1 = 23.000000}), DTS({23/1 = 23.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
+{PTS({24/1 = 24.000000}), DTS({24/1 = 24.000000}), duration({1/1 = 1.000000}), flags(1), generation(0)}
END OF TEST
Modified: trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-timestampoffset-then-zero.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -17,7 +17,7 @@
const samples = [];
for (let time = start; time < end; time++)
- samples.push(makeASample(time, time, 1, 1, SAMPLE_FLAG.SYNC, generation));
+ samples.push(makeASample(time, time, 1, 1, 1, SAMPLE_FLAG.SYNC, generation));
return concatenateSamples([init].concat(samples));
}
Modified: trunk/LayoutTests/media/media-source/media-source-video-playback-quality.html (237650 => 237651)
--- trunk/LayoutTests/media/media-source/media-source-video-playback-quality.html 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/media-source-video-playback-quality.html 2018-10-31 21:04:07 UTC (rev 237651)
@@ -33,7 +33,7 @@
function loadSample()
{
- samples = concatenateSamples([makeASample(0, 0, 1, 1, SAMPLE_FLAG.NONE)]);
+ samples = concatenateSamples([makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.NONE)]);
waitForEventOn(sourceBuffer, 'updateend', loadMoreSamples, false, true);
consoleWrite('Test that beginning a buffer with a non-sync sample results in that sample being dropped.')
run('sourceBuffer.appendBuffer(samples)');
@@ -48,13 +48,13 @@
testExpected('quality.totalFrameDelay', 0);
samples = concatenateSamples([
- makeASample(0, 0, 1, 1, SAMPLE_FLAG.SYNC),
- makeASample(1, 1, 1, 1, SAMPLE_FLAG.CORRUPTED),
- makeASample(2, 2, 1, 1, SAMPLE_FLAG.DROPPED),
- makeASample(4, 4, 1, 1, SAMPLE_FLAG.DELAYED),
- makeASample(5, 5, 1, 1, SAMPLE_FLAG.DELAYED),
- makeASample(6, 6, 1, 1, SAMPLE_FLAG.DELAYED),
- makeASample(7, 7, 1, 1, SAMPLE_FLAG.NONE),
+ makeASample(0, 0, 1, 1, 1, SAMPLE_FLAG.SYNC),
+ makeASample(1, 1, 1, 1, 1, SAMPLE_FLAG.CORRUPTED),
+ makeASample(2, 2, 1, 1, 1, SAMPLE_FLAG.DROPPED),
+ makeASample(4, 4, 1, 1, 1, SAMPLE_FLAG.DELAYED),
+ makeASample(5, 5, 1, 1, 1, SAMPLE_FLAG.DELAYED),
+ makeASample(6, 6, 1, 1, 1, SAMPLE_FLAG.DELAYED),
+ makeASample(7, 7, 1, 1, 1, SAMPLE_FLAG.NONE),
]);
waitForEventOn(sourceBuffer, 'updateend', samplesAdded, false, true);
run('sourceBuffer.appendBuffer(samples)');
Modified: trunk/LayoutTests/media/media-source/mock-media-source.js (237650 => 237651)
--- trunk/LayoutTests/media/media-source/mock-media-source.js 2018-10-31 20:26:57 UTC (rev 237650)
+++ trunk/LayoutTests/media/media-source/mock-media-source.js 2018-10-31 21:04:07 UTC (rev 237651)
@@ -16,9 +16,7 @@
DELAYED: 1 << 3,
};
-function makeASample(presentationTime, decodeTime, duration, trackID, flags, generation, timeScale) {
- if (typeof timeScale === 'undefined')
- timeScale = 1000
+function makeASample(presentationTime, decodeTime, duration, timeScale, trackID, flags, generation) {
var byteLength = 30;
var buffer = new ArrayBuffer(byteLength);
var array = new Uint8Array(buffer);
@@ -27,9 +25,9 @@
var view = new DataView(buffer);
view.setUint32(4, byteLength, true);
view.setInt32(8, timeScale, true);
- view.setInt32(12, presentationTime * timeScale, true);
- view.setInt32(16, decodeTime * timeScale, true);
- view.setInt32(20, duration * timeScale, true);
+ view.setInt32(12, presentationTime, true);
+ view.setInt32(16, decodeTime, true);
+ view.setInt32(20, duration, true);
view.setInt32(24, trackID, true);
view.setUint8(28, flags);
view.setUint8(29, generation);