lostdesign / linked

🧾 Daily journaling without distraction. An easy, distraction-free way to record your thoughts, declutter your mind and keep the things you want to remember. Join the discord at https://discord.gg/uNjJzZvccr
https://uselinked.com
GNU General Public License v3.0
894 stars 67 forks source link

add support for audio recording #8

Closed mwager closed 3 years ago

mwager commented 3 years ago

more info soon!

mwager commented 3 years ago

Problem: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia -> deprecated. 👎

Also:

navigator.mediaDevices.getUserMedia does not work on macOS for audio capture due to a fundamental limitation whereby apps that want to access the system's audio require a signed kernel extension. Chromium, and by extension Electron, does not provide this.

SRC: https://www.electronjs.org/docs/api/desktop-capturer

lostdesign commented 3 years ago

Just dumping my research results here: https://developer.chrome.com/docs/extensions/reference/tabCapture/ https://github.com/electron/electron/issues/4776 https://github.com/electron/electron/issues/10515 https://github.com/Streampunk/naudiodon

Kext development: https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/About/About.html#//apple_ref/doc/uid/TP30000905 https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/KernelExtensions/KernelExtensions.html

Disabling SIP to run unsigned kext: https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html#//apple_ref/doc/uid/TP40016462-CH5-SW1