AVCaptureDeviceInput
extension AVCaptureDeviceInput
-
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
mediaTypeSpecified media type. (i.e. AVMediaTypeVideo, AVMediaTypeAudio, etc.)
captureSessionCapture session for which to query
Return Value
Desired capture device input for the associated media type, otherwise nil
AVCaptureDeviceInput Extension Reference