 protocol VSVideoReaderDelegate: NSObjectProtocol {
     func didStartReading(reader:VSVideoReader, track:AVAssetTrack)
     func didFailToRead(reader:VSVideoReader)
+    func didGetFrame(reader:VSVideoReader, texture:MTLTexture, presentationTime:CMTime)
     func didFinishReading(reader:VSVideoReader)
 }
 

        }
    }
    
    func read() {
        guard let reader = self.reader,
            let output = self.output else {
                return

        guard reader.status == .reading,
              let sampleBuffer = output.copyNextSampleBuffer(),
              let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) else {
            print("VSVideoReader: Process Complete")
            self.delegate?.didFinishReading(reader: self)
            return
        }
