mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
Backed out changeset 96d02a1982f7 (bug 1274221)
This commit is contained in:
parent
60e86b393e
commit
614b2d105f
@ -27,13 +27,8 @@
|
||||
// navigated away (see bug 1269400 for details).
|
||||
return new Promise((resolve, reject) =>
|
||||
iframe.contentDocument.gUM({audio: true, video: true}, resolve, reject))
|
||||
.then(s => {
|
||||
// We're cloning a stream containing identical tracks (an original
|
||||
// and its clone) to test that ended works both for originals
|
||||
// clones when they're both owned by the same MediaStream.
|
||||
// (Bug 1274221)
|
||||
stream = new MediaStream([].concat(s.getTracks(), s.getTracks())
|
||||
.map(t => t.clone())).clone();
|
||||
.then(s => stream = s)
|
||||
.then(() => {
|
||||
var allTracksEnded = Promise.all(stream.getTracks().map(t => {
|
||||
info("Set up ended handler for track " + t.id);
|
||||
return haveEvent(t, "ended", wait(5000))
|
||||
|
Loading…
Reference in New Issue
Block a user