Any example of running native Swift with Tauri V2? #9581
Unanswered
gergomiklos
asked this question in
Q&A
Replies: 2 comments
|
ever figure this out? |
0 replies
|
I don’t think there are any Swift-plugins for this unfortunately that I know of. There are a few other options though that might work: Since your backend is already Rust, you can use the screencapturekit-rs crate, which wraps ScreenCaptureKit and can capture screen content and the audio that goes with it. If you specifically need Swift-side APIs, you can use the swift-rs crate instead. You write the capture in Swift, expose a C ABI, and call it from Tauri. You can also use a desktop recording SDK to record audio and video directly from a MacOS device. This can deliver audio either through a websocket or direct-to-app callback like you were suggesting, and will be the easiest in terms of set-up/maintenance. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to capture and stream live system audio on MacOS, and the only possible solution for this is to use the native ScreenCaptureKit with Swift. There are two possible approaches: one is to start a Swift websocket server and send audio data there, and the other is to send the audio data directly to the JS frontend and handle it there. Is there a Swift plugin example similar to these? Or any Swift plugin example?
All reactions