mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1304950
- Reduce timeslice to avoid races with the source ending. r=jwwang
Media element capture pushes data to MSG ahead of currentTime which together with the direct listeners that we use in MediaRecorder we end up finishing the recording in less than the 250ms that this test uses as the recording timeslice. Lowering the timeslice here seems to fix this. I'm using 1 here since it's the minimum valid number. MozReview-Commit-ID: KAlRoHWHPSV --HG-- extra : rebase_source : cc2af7829dca734b0411383a6b92dd0691533411
This commit is contained in:
parent
05686d2182
commit
adb5ba763c
@ -89,7 +89,7 @@ function startTest(test, token) {
|
||||
}
|
||||
};
|
||||
|
||||
mediaRecorder.start(250);
|
||||
mediaRecorder.start(1);
|
||||
element.play();
|
||||
is(mediaRecorder.state, 'recording', 'Media recorder should be recording');
|
||||
is(mediaRecorder.stream, stream,
|
||||
|
Loading…
Reference in New Issue
Block a user