Commit 6715bf86 authored by Emily Jensen's avatar Emily Jensen

Added stop video function

parent a603175f
Pipeline #38119851 failed with stage
in 6 minutes and 14 seconds
......@@ -78,6 +78,18 @@ export class ResetPasswordVerifyComponent implements OnInit {
}
}
// TODO: figure out how to run this function when navigated away from route
stopStreamedVideo(videoElem: any) {
const stream = videoElem.srcObject;
const tracks = stream.getTracks();
tracks.forEach(function(track: any) {
track.stop();
});
videoElem.srcObject = null;
}
handleQrFound = (content: string) => {
this.verify.emit(content);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment