Created
December 14, 2020 23:32
-
-
Save standinga/6f8e8566c13fa69c65ea8d3aef98cbcd to your computer and use it in GitHub Desktop.
view displaying CMSampleBuffer frames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AVFoundation | |
import UIKit | |
class AVSampleBufferView: UIView { | |
var bufferLayer: AVSampleBufferDisplayLayer { | |
return layer as! AVSampleBufferDisplayLayer | |
} | |
override static var layerClass: AnyClass { | |
return AVSampleBufferDisplayLayer.self | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment