AVCaptureDeviceInput
class AVCaptureDeviceInput : AVCaptureInput
-
Returns the capture device input for the desired media type and capture session, otherwise nil.
- Parameters:
- mediaType: Specified media type. (i.e. AVMediaTypeVideo, AVMediaTypeAudio, etc.)
- captureSession: Capture session for which to query
Returns
Desired capture device input for the associated media type, otherwise nilDeclaration
Swift
public class func deviceInput(withMediaType mediaType: AVMediaType, captureSession: AVCaptureSession) -> AVCaptureDeviceInput?
- Parameters: