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