Remove dead code.
This commit is contained in:
@@ -211,7 +211,6 @@ async function setLocalMedia(setup) {
|
|||||||
|
|
||||||
if(!localMediaId) {
|
if(!localMediaId) {
|
||||||
let constraints = {audio: true, video: true};
|
let constraints = {audio: true, video: true};
|
||||||
let opts = {video: true, audio: true};
|
|
||||||
let stream = null;
|
let stream = null;
|
||||||
try {
|
try {
|
||||||
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
||||||
@@ -254,8 +253,6 @@ async function setShareMedia(setup) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!shareMediaId) {
|
if(!shareMediaId) {
|
||||||
let constraints = {audio: true, video: true};
|
|
||||||
let opts = {video: true, audio: true};
|
|
||||||
let stream = null;
|
let stream = null;
|
||||||
try {
|
try {
|
||||||
stream = await navigator.mediaDevices.getDisplayMedia({});
|
stream = await navigator.mediaDevices.getDisplayMedia({});
|
||||||
|
|||||||
Reference in New Issue
Block a user