Alen Lee
Alen Lee

Reputation: 2509

How to capture audio in javascript UWP?

How to capture audio from microphone in Javascript Universal Windows app?

it have several ways, but all of that are C# solution, like

Does have a solution for js?

Upvotes: 1

Views: 103

Answers (1)

Michael Hawker - MSFT
Michael Hawker - MSFT

Reputation: 1580

Pretty much all the API surface for Win 10 is exposed to JavaScript, you usually just need to fully qualify all the types you want to use and use JavaScript naming conventions with a lowercase letter to start function names.

There's a bunch of information here about considerations when calling the Windows Runtime from JavaScript (be sure to check the other links on the left too, e.g. async methods).

If you look at the MediaCapture class page directly, they have a small JavaScript snippet around how to initialize it.

Upvotes: 2

Related Questions