Bug 1166183 - Work around bug 934512 in track_peerConnection_replaceTrack.html. r=pehrsons

This commit is contained in:
Paul Adenot 2015-05-20 14:30:47 +02:00
parent ea8fe53dae
commit b8aa761032

View File

@ -32,6 +32,9 @@
var audiotrack;
return navigator.mediaDevices.getUserMedia({video:true, audio:true, fake:true})
.then(newStream => {
// because of bug 934512, we need to addref this on the content side
// otherwise gecko might gc it.
window.grip = newstream;
newTrack = newStream.getVideoTracks()[0];
audiotrack = newStream.getAudioTracks()[0];
isnot(newTrack, sender.track, "replacing with a different track");