define sessionId

pull/339/head
Andrew Shini 3 years ago committed by GitHub
parent f4817dad4d
commit 3d7d7cf41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      react-native/src/index.js

@ -672,6 +672,7 @@ export class AbstractSession extends Session {
* Cancels running the session. * Cancels running the session.
*/ */
cancel() { cancel() {
const sessionId = this.getSessionId();
if (sessionId === undefined) { if (sessionId === undefined) {
return FFmpegKitReactNativeModule.cancel(); return FFmpegKitReactNativeModule.cancel();
} else { } else {

Loading…
Cancel
Save