The Wayback Machine - https://web.archive.org/web/20210125002708/https://github.com/ManishaJoshi-mj/MJMediaPicker
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

MJMediaPicker

A Custom Class to select media from camera ,video or photo library .

Usage

Just Drag and Drop MJMediaPicker class into your project and you are done.You can download and run the demo app for refrence.

How to use:

  1. If you need to capture image from Camera
MJMediaPicker.sharedInstance.openCamera(self, isVideo: false, showVideoOption: true) { (aImg, videoUrl, selectedType)  in
     //Perform your work accordingly
} 
  1. If you need to capture video
MJMediaPicker.sharedInstance.openCamera(self, isVideo: true, showVideoOption: true) { (aImg, videoUrl, selectedType) in
    //Perform your work accordingly
}
  1. If you need to choose media from photo library
MJMediaPicker.sharedInstance.chooseImageFromGallery(viewController: self) { (aImg, videoUrl, selectedType) in
    //Perform your work accordingly
}

default:

MJMediaPicker.sharedInstance.showCameraVideoActionSheeet(self, showVideo: true) { (aImg, videoUrl, selectedType) in
    //Perform your work accordingly
    }

HappyCoding !!

Releases

No releases published

Packages

No packages published

Languages