Hi team,
I have currently implemented screen recording feature in mv3. For this I am asking user to select screen/tab on a separate page that is opened by extension itself. I did this because if I use tabCapture method, it will auto stop the recording once the URL gets changed. In the same manner I want to capture user's audio.
I tried most of the things like passing audio : true while asking user to select screen
navigator.mediaDevices.getUserMedia({
audio: true,
video: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: desktopId,
minWidth: 1280,
maxWidth: 1280,
minHeight: 720,
maxHeight: 720,
},
},
}, gotStream, getUserMediaError);
also
navigator.mediaDevices.getUserMedia({
audio: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: desktopId,
},
},
video: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: desktopId,
minWidth: 1280,
maxWidth: 1280,
minHeight: 720,
maxHeight: 720,
},
},
},
gotStream,
getUserMediaError
);
but nothing works out for me.
Is there any way to get this done in mv3?