Skip to content

Commit f46fe53

Browse files
gevgasparyanShahen Hovhannisyan
authored andcommitted
fix(ProcessingManager): pass format to getPreviewImage on iOS (#73)
1 parent b52c1d3 commit f46fe53

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)