Skip to content

Commit

Permalink
fix(ProcessingManager): pass format to getPreviewImage on iOS (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
gevgasparyan authored and Shahen Hovhannisyan committed Jun 9, 2017
1 parent b52c1d3 commit f46fe53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/VideoPlayer/VideoPlayer.ios.js
Expand Up @@ -63,10 +63,10 @@ export class VideoPlayer extends Component {
this._onChange = this._onChange.bind(this);
}

getPreviewForSecond(forSecond = 0, maximumSize) {
getPreviewForSecond(forSecond = 0, maximumSize, format = 'base64') {
const actualSource = getActualSource(this.props.source);
return new Promise((resolve, reject) => {
RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize,
RNVideoTrimmer.getPreviewImageAtPosition(actualSource, forSecond, maximumSize, format,
(err, base64) => {
if (err) {
return reject(err);
Expand Down

0 comments on commit f46fe53

Please sign in to comment.