mirror of
https://github.com/tappollo/OSCKit.git
synced 2026-04-29 10:45:25 +08:00
Release 0.2.1
This commit is contained in:
@@ -77,7 +77,7 @@ final class LivePreview: NSObject, URLSessionDataDelegate {
|
||||
|
||||
extension OSCKit {
|
||||
public func startLivePreview(callback: @escaping (UIImage?) -> Void) {
|
||||
async { () -> JSON in
|
||||
_ = async { () -> JSON in
|
||||
switch try await(self.apiVersion) {
|
||||
case .version2(let session):
|
||||
try await(self.execute(command: CommandV1.setOptions(options: [CaptureMode.image], sessionId: session.id)))
|
||||
|
||||
Reference in New Issue
Block a user