mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 1166183 - Work around bug 934512 in track_peerConnection_replaceTrack.html. r=pehrsons
This commit is contained in:
parent
ea8fe53dae
commit
b8aa761032
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user