-export default {
- async start() {
- internals.mediaStream =
- internals.mediaStream ||
- (await navigator.mediaDevices.getUserMedia({
- audio: true,
- }));
+export async function startMedia() {
+ internals.mediaStream =
+ internals.mediaStream ||
+ (await navigator.mediaDevices.getUserMedia({
+ audio: true,
+ }));