-1

enter image description here

As shown Screen shot i want to hide seek bar from camera, when i choose to capture video from my App through UIImagepickerController but am unable to hide this video and photo option

1
  • set imagePicker.mediatype as kUTTypeVideo
    – Shruti
    Feb 28, 2019 at 5:31

1 Answer 1

2

Use following code to get your expected output, set mediaTypes property as [kUTTypeMovie as String] to capture only video.

 let controller = UIImagePickerController()
        controller.sourceType = .camera
        controller.videoMaximumDuration = 30.0 .
        controller.allowsEditing = true
        controller.mediaTypes = [kUTTypeMovie as String]
        controller.delegate = self
        controller.isEditing = true
        present(controller, animated: true, completion: nil)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.