parent
2fd7097e23
commit
ea9f267ce6
@ -0,0 +1,40 @@ |
||||
/* |
||||
* Copyright (c) 2021 Taner Sener |
||||
* |
||||
* This file is part of FFmpegKit. |
||||
* |
||||
* FFmpegKit is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Lesser General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* FFmpegKit is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public License |
||||
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
package com.arthenica.ffmpegkit.reactnative; |
||||
|
||||
import com.arthenica.ffmpegkit.FFmpegKitConfig; |
||||
import com.arthenica.ffmpegkit.FFmpegSession; |
||||
import com.facebook.react.bridge.Promise; |
||||
|
||||
public class FFmpegSessionExecuteTask implements Runnable { |
||||
private final FFmpegSession ffmpegSession; |
||||
private final Promise promise; |
||||
|
||||
public FFmpegSessionExecuteTask(final FFmpegSession ffmpegSession, final Promise promise) { |
||||
this.ffmpegSession = ffmpegSession; |
||||
this.promise = promise; |
||||
} |
||||
|
||||
@Override |
||||
public void run() { |
||||
FFmpegKitConfig.ffmpegExecute(ffmpegSession); |
||||
promise.resolve(null); |
||||
} |
||||
} |
@ -0,0 +1,40 @@ |
||||
/* |
||||
* Copyright (c) 2021 Taner Sener |
||||
* |
||||
* This file is part of FFmpegKit. |
||||
* |
||||
* FFmpegKit is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Lesser General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* FFmpegKit is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public License |
||||
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
package com.arthenica.ffmpegkit.reactnative; |
||||
|
||||
import com.arthenica.ffmpegkit.FFmpegKitConfig; |
||||
import com.arthenica.ffmpegkit.FFprobeSession; |
||||
import com.facebook.react.bridge.Promise; |
||||
|
||||
public class FFprobeSessionExecuteTask implements Runnable { |
||||
private final FFprobeSession ffprobeSession; |
||||
private final Promise promise; |
||||
|
||||
public FFprobeSessionExecuteTask(final FFprobeSession ffprobeSession, final Promise promise) { |
||||
this.ffprobeSession = ffprobeSession; |
||||
this.promise = promise; |
||||
} |
||||
|
||||
@Override |
||||
public void run() { |
||||
FFmpegKitConfig.ffprobeExecute(ffprobeSession); |
||||
promise.resolve(null); |
||||
} |
||||
} |
@ -0,0 +1,42 @@ |
||||
/* |
||||
* Copyright (c) 2021 Taner Sener |
||||
* |
||||
* This file is part of FFmpegKit. |
||||
* |
||||
* FFmpegKit is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Lesser General Public License as published by |
||||
* the Free Software Foundation, either version 3 of the License, or |
||||
* (at your option) any later version. |
||||
* |
||||
* FFmpegKit is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public License |
||||
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/ |
||||
|
||||
package com.arthenica.ffmpegkit.reactnative; |
||||
|
||||
import com.arthenica.ffmpegkit.FFmpegKitConfig; |
||||
import com.arthenica.ffmpegkit.MediaInformationSession; |
||||
import com.facebook.react.bridge.Promise; |
||||
|
||||
public class MediaInformationSessionExecuteTask implements Runnable { |
||||
private final MediaInformationSession mediaInformationSession; |
||||
private final int timeout; |
||||
private final Promise promise; |
||||
|
||||
public MediaInformationSessionExecuteTask(final MediaInformationSession mediaInformationSession, final int timeout, final Promise promise) { |
||||
this.mediaInformationSession = mediaInformationSession; |
||||
this.timeout = timeout; |
||||
this.promise = promise; |
||||
} |
||||
|
||||
@Override |
||||
public void run() { |
||||
FFmpegKitConfig.getMediaInformationExecute(mediaInformationSession, timeout); |
||||
promise.resolve(null); |
||||
} |
||||
} |
Loading…
Reference in new issue