|
9 | 9 |
|
10 | 10 | # Introduction |
11 | 11 |
|
| 12 | +You can easily transfer your video into Three common video type. |
12 | 13 |
|
| 14 | +You can use set up camera easily. |
| 15 | + |
| 16 | +# Installation |
| 17 | + |
| 18 | +``` |
| 19 | + pod 'JDVideoKit' |
| 20 | +``` |
13 | 21 |
|
14 | 22 | # USAGE |
15 | 23 |
|
|
21 | 29 |
|
22 | 30 | ### 4.[Convert Video Directly](#convert-video-directly) |
23 | 31 |
|
| 32 | +### [Customize your Layout](#customization) |
| 33 | + |
24 | 34 | ## Delegate |
25 | 35 |
|
26 | 36 | ```swift |
@@ -53,7 +63,7 @@ Return nil, will call Capturing Layout. |
53 | 63 |
|
54 | 64 | 2. ***(Optional)*** |
55 | 65 |
|
56 | | -You can make some setting to customize [ProcessingViewController](#ProcessingViewController) and return it. |
| 66 | +You can make some setting to customize [ProcessingViewController](#processingViewController) and return it. |
57 | 67 |
|
58 | 68 | 3. ***(Optional)*** |
59 | 69 |
|
@@ -174,5 +184,53 @@ extension ViewController:JDVideoKitDelegate |
174 | 184 | ``` |
175 | 185 |
|
176 | 186 | --- |
| 187 | +### Customization |
| 188 | + |
| 189 | +#### ProcessingViewController |
| 190 | + |
| 191 | +Implement this Delegate: |
| 192 | + |
| 193 | +```Swift |
| 194 | +func willPresent(cameraViewController vc:JDProcessingViewController,forkit:JDVideoKit)->JDProcessingViewController |
| 195 | +{ |
| 196 | + ///Set Below Variable Like this |
| 197 | + vc.enableFlashLight = false |
| 198 | +} |
| 199 | +``` |
| 200 | + |
| 201 | +The component you can customize: |
| 202 | + |
| 203 | +```swift |
| 204 | +public var enableFlashLight:Bool = true |
| 205 | +public var FlashLightIconColor:UIColor = UIColor.black |
| 206 | +public var SwitchIconColor:UIColor = UIColor.white |
| 207 | +public var CaptureIconColor:UIColor = UIColor.white |
| 208 | +public var allowChooseFromLibrary:Bool = true |
| 209 | +public var BackgroundViewBarColor:UIColor? |
| 210 | +``` |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | +#### ProcessingViewController |
| 216 | + |
| 217 | +Implement this Delegate: |
| 218 | + |
| 219 | +```Swift |
| 220 | +func willPresent(edtingViewController vc:JDPresentingViewController,lastVC:UIViewController?,forkit:JDVideoKit)->JDPresentingViewController? |
| 221 | +{ |
| 222 | + vc.topTitle = "Title" |
| 223 | +} |
| 224 | +``` |
| 225 | + |
| 226 | + |
| 227 | +The component you can customize: |
| 228 | + |
| 229 | +```swift |
| 230 | +public var topTitle:String = "Share" |
| 231 | +public var CloseIconColor:UIColor = UIColor.white |
| 232 | +public var saveButtonTitle:String = "Save" |
| 233 | +public var savaButtonColor:UIColor = UIColor.white |
| 234 | +``` |
177 | 235 |
|
178 | | -### ProcessingViewController |
| 236 | + |
0 commit comments