Skip to content

masakih/MovieCapture

Repository files navigation

MovieCapture

capture movie at your application for macOS

Language: Swift Platform License Carthage compatible GitHub release

使い方

すごく簡単。

import MovieCapture

class ViewController: NSViewController {

    private var capture: MovieCapture?
    
    private let captureFrame = NSRect(x: 0, y: 0, width: 100, height: 100)
    
    @IBAction private func start(_: Any) {
        
        do {
            
            try capture = MovieCapture(screenFrame: captureFrame)
            
            try capture?.start()
            
        } catch {
            
            print(error)
        }
    }
    
    @IBAction private func finish(_: Any) {
        
        capture?.stop { url, error in
            
            if let error = error {
                
                print(error)
                return
            }
            
            NSWorkspace.shared.open(url)
        }
    }
}

音声入力

もしあなたのユーザーが Soundflower をインストールしているなら、それが使われる。

About

capture movie at your application for macOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published