@@ -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 {
1341613 . [ ] Android should be able to compress video
1351624 . [ ] More processing options
1361635 . [ ] Create native trimmer component for Android
164+ 6 . [x] Provide Standalone API
0 commit comments