() {
            await requestPermissions();
            try {
                const devices = await navigator.mediaDevices.enumerateDevices();
                prettyPrint(devices.filter(d => d.kind === 'videoinput'), 'videoInputs');
                prettyPrint(devices.filter(d => d.kind === 'audioinput'), 'audioInputs');
            } catch (err) {
                console.error(err);
            }
        }

        initializeDevices();
    </script>
</body>
</html>