Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I’m attempting to create a subclass of AVCaptureOutput
that ought to behave just like the AVCaptureMovieFileOutput
with particular options.
Nevertheless whether or not I present an init
operate or not, I find yourself with an 'init()' is unavailable
error (within the instance beneath, on the line calling tremendous.init()
)
import AVKit
import Basis
class MyCaptureOutput: AVCaptureOutput {
non-public let period: Double
non-public(set) var isRecording = false
init(period: Double) {
self.period = period
tremendous.init()
}
}
Subclassing AVCaptureFileOutput
works superb. It’s a direct little one of AVCaptureOutput
.
Additionally subclassing AVCaptureVideoDataOutput
works superb. Nevertheless, I want my class to additionally output audio however it’s not potential to inherit from a number of lessons AVCaptureVideoDataOutput
and AVCaptureAudioDataOutput
.
Why am I not capable of subclass AVCaptureOutput
?
[ad_2]