Skip to content

Commit 519dcdc

Browse files
author
Shahen Hovhannisyan
committed
Merge branch 'master' of github.com:shahen94/react-native-video-processing
2 parents 84e386e + f46fe53 commit 519dcdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/VideoPlayer/VideoPlayer.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export class VideoPlayer extends Component {
6363
this._onChange = this._onChange.bind(this);
6464
}
6565

66-
getPreviewForSecond(forSecond = 0, maximumSize) {
66+
getPreviewForSecond(forSecond = 0, maximumSize, format = 'base64') {
6767
const actualSource = getActualSource(this.props.source);
6868
return new Promise((resolve, reject) => {
69-
RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize,
69+
RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize, format,
7070
(err, base64) => {
7171
if (err) {
7272
return reject(err);

0 commit comments

Comments
 (0)