Skip to content

Instantly share code, notes, and snippets.

@takashi1975
takashi1975 / RPScreenWriter.swift
Created December 7, 2020 11:18 — forked from mspvirajpatel/RPScreenWriter.swift
ScreenWriter With ReplayKit
import Foundation
import AVFoundation
import ReplayKit
class RPScreenWriter {
// Write video
var videoOutputURL: URL
var videoWriter: AVAssetWriter?
var videoInput: AVAssetWriterInput?
// Write audio