This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.locals.use(function(req, res, done) { | |
res.locals.request = req; | |
done(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Update package.json with the following | |
"node-remote": "http://example.com", | |
"chromium-args": "--disable-web-security" | |
// HTML: <iframe src="http://example.com" nwfaketop></iframe> | |
parent.window.root.GLOBAL.window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AudioSessionManager: NSObject, ObservableObject { | |
@Published var microphones: [AVCaptureDevice] = [] | |
var captureSession: AVCaptureSession = .init() | |
var audioOutput: AVCaptureAudioDataOutput? | |
var configured: Bool = false | |
private var audioInput: AVCaptureDeviceInput? | |
let dataOutputQueue = DispatchQueue(label: "audio_queue", | |
qos: .userInteractive, |