runTest(async () => {
// Force fake devices in order to be able to change camera name by pref.
await pushPrefs(["media.navigator.streams.fake", true],
["media.audio_loopback_dev", ""],
["media.video_loopback_dev", ""]);
/* The low level method to correlate groupIds is by device names.
* Use a similar comparison here to verify that it works.
* Multiple devices of the same device name are not expected in
* automation. */
isnot(audio.label, video.label, "Audio label differs from video");
isnot(audio.groupId, video.groupId, "Not the same groupIds");
// Change video name to match.
await pushPrefs(["media.getusermedia.fake-camera-name", audio.label]);
({audio, video} = await getDefaultDevices());
is(audio.label, video.label, "Audio label matches video");
is(audio.groupId, video.groupId, "GroupIds should be the same");
});
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.