Skip to content

Commit c6ec3ca

Browse files
committed
Update ReadMe
1 parent 04cc7b5 commit c6ec3ca

3 files changed

Lines changed: 66 additions & 7 deletions

File tree

JDAVKit/JDVideoKit/JDPresentingViewController.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public class JDPresentingViewController:UIViewController
5959
var LeadingConstraint:NSLayoutConstraint!
6060
var indicatorView:UIActivityIndicatorView?
6161
//UI Setting
62-
var topTitle:String = "Share"
63-
var CloseIconColor:UIColor = UIColor.white
64-
var saveButtonTitle:String = "Save"
65-
var savaButtonColor:UIColor = UIColor.white
62+
public var topTitle:String = "Share"
63+
public var CloseIconColor:UIColor = UIColor.white
64+
public var saveButtonTitle:String = "Save"
65+
public var savaButtonColor:UIColor = UIColor.white
6666

6767

6868

@@ -162,7 +162,7 @@ public class JDPresentingViewController:UIViewController
162162
leadingConstant = NSLayoutConstraint(item: uiimgView, attribute: .leading, relatedBy: .equal, toItem: lastimg, attribute: .trailing, multiplier: 1.0, constant: 0.0)
163163
}
164164
else
165-
{
165+
{
166166
leadingConstant = NSLayoutConstraint(item: uiimgView, attribute: .leading, relatedBy: .equal, toItem: trimViewContainer, attribute: .leading, multiplier: 1.0, constant: 0.0)
167167
}
168168

@@ -235,6 +235,7 @@ public class JDPresentingViewController:UIViewController
235235
if(newValue == old)
236236
{
237237
self.ChoosingMode = .Normal
238+
self.videoPlayer.replaceCurrentItem(with: assetitem)
238239
videoPlayer.seek(to: kCMTimeZero) { (bool) in
239240
self.videoPlayer.rate = 1.0
240241
}

README.md

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@
99

1010
# Introduction
1111

12+
You can easily transfer your video into Three common video type.
1213

14+
You can use set up camera easily.
15+
16+
# Installation
17+
18+
```
19+
pod 'JDVideoKit'
20+
```
1321

1422
# USAGE
1523

@@ -21,6 +29,8 @@
2129

2230
### 4.[Convert Video Directly](#convert-video-directly)
2331

32+
### [Customize your Layout](#customization)
33+
2434
## Delegate
2535

2636
```swift
@@ -53,7 +63,7 @@ Return nil, will call Capturing Layout.
5363

5464
2. ***(Optional)***
5565

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.
5767

5868
3. ***(Optional)***
5969

@@ -174,5 +184,53 @@ extension ViewController:JDVideoKitDelegate
174184
```
175185

176186
---
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+
![Alt text](https://raw.githubusercontent.com/jamesdouble/JDVideoKit/master/Readme_img/processingVC.png)
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+
```
177235

178-
### ProcessingViewController
236+
![Alt text](https://raw.githubusercontent.com/jamesdouble/JDVideoKit/master/Readme_img/presentingVC.png)

0 commit comments

Comments
 (0)