Skip to content

Commit a1c9be7

Browse files
author
Shahen Hovhannisyan
committed
chore(README.md): Updated readme
1 parent 4362bfa commit a1c9be7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class App extends Component {
111111
onTrackerMove={(e) => console.log(e.currentTime)} // iOS only
112112
currentTime={this.video.currentTime} // use this prop to set tracker position iOS only
113113
themeColor={'white'} // iOS only
114+
thumbWidth={30} // iOS only
114115
trackerColor={'green'} // iOS only
115116
onChange={(e) => console.log(e.startTime, e.endTime)}
116117
/>
@@ -119,6 +120,32 @@ class App extends Component {
119120
}
120121
}
121122
```
123+
or you can use ProcessingManager without mounting VideoPlayer component
124+
```
125+
import React, { Component } from 'react';
126+
import { View } from 'react-native';
127+
import { ProcessingManager } from 'react-native-video-processing';
128+
export class App extends Component {
129+
componentWillMount() {
130+
const { source } = this.props;
131+
ProcessingManager.getVideoInfo(source)
132+
.then(({ duration, size }) => console.log(duration, size));
133+
134+
ProcessingManager.trim(source, options) // like VideoPlayer trim options
135+
.then((data) => console.log(data));
136+
137+
ProcessingManager.compress(source, options) // like VideoPlayer compress options
138+
.then((data) => console.log(data));
139+
140+
const maximumSize = { width: 100, height: 200 };
141+
ProcessingManager.getPreviewForSecond(source, forSecond, maximumSize)
142+
.then((data) => console.log(data))
143+
}
144+
render() {
145+
return <View />;
146+
}
147+
}
148+
```
122149

123150
### How to setup Library
124151
[![Setup](https://img.youtube.com/vi/HRjgeT6NQJM/0.jpg)](https://youtu.be/HRjgeT6NQJM)
@@ -134,3 +161,4 @@ class App extends Component {
134161
3. [ ] Android should be able to compress video
135162
4. [ ] More processing options
136163
5. [ ] Create native trimmer component for Android
164+
6. [x] Provide Standalone API

0 commit comments

Comments
 (0)