Warm tip: This article is reproduced from stackoverflow.com, please click
microphone visual-studio-code vscode-extensions webcam getusermedia

Why is navigator.getUserMedia undefined in VScode extension webview?

发布于 2020-03-31 23:00:24

I am currently developing a videochat app for browser, which reuires the usage of navigator.getUserMedia to obtain media streams from user's webcam and microphone. I decided to extend my app to a vscode extension, for this I used a vscode webview with the iframe inside. Right now I get an error message that navigator.getUserMedia is undefined. So is it possible to use this function in a vscode extension? Thank you for any help:)

Questioner
gnomus042
Viewed
69
O. Jones 2020-02-04 08:59

is it possible to use this function in a vscode extension?

It is not possible. Sorry to say.