@Deprecated
public interface VideoEditingNativeInterface
extends com.codename1.system.NativeInterface
This native interface is deprecated because you shouldn't use it directly.
This native interface provides methods to get some info of the video placed
in the FileSystemStorage
and to optimize them for
fast uploading to a server.
About the video compression, it relies on MobileFFmpeg on Android and on AVAssetExportSession on iOS.
Modifier and Type | Method and Description |
---|---|
void |
getImageFromVideo(java.lang.String videoFile,
java.lang.String jpegFile)
Deprecated.
Extract the first frame from the given video file and saves it to the
given jpeg file.
|
int |
getVideoBitrate(java.lang.String videoFile)
Deprecated.
Get the average bitrate (in bits/sec), if available.
|
long |
getVideoDuration(java.lang.String videoFile)
Deprecated.
Returns the duration of the videoFile in seconds, or -1 in case of error
|
java.lang.String |
getVideoSize(java.lang.String videoFile)
Deprecated.
Returns the size of the given video in the format widthxheight, for
example 1280x720
|
void |
optimizeVideoForUpload(java.lang.String inputVideoFile,
java.lang.String outputVideoFile)
Deprecated.
(Async) method to optimize the given inputVideoFile for fast
uploading.Currently it uses a default low quality both on Android and
iOS.
|
void getImageFromVideo(java.lang.String videoFile, java.lang.String jpegFile)
videoFile
- FileSystemStorage path, make sure doesn't include the
"file:" prefixjpegFile
- FileSystemStorage path, make sure doesn't include the
"file:" prefixlong getVideoDuration(java.lang.String videoFile)
videoFile
- FileSystemStorage path, make sure doesn't include the
"file:" prefixint getVideoBitrate(java.lang.String videoFile)
videoFile
- FileSystemStorage path, make sure doesn't include the
"file:" prefixjava.lang.String getVideoSize(java.lang.String videoFile)
videoFile
- FileSystemStorage path, make sure doesn't include the
"file:" prefixvoid optimizeVideoForUpload(java.lang.String inputVideoFile, java.lang.String outputVideoFile)
inputVideoFile
- FileSystemStorage path, make sure doesn't include
the "file:" prefixoutputVideoFile
- FileSystemStorage path, make sure doesn't include
the "file:" prefix (the file name defaults to "optimized.mp4")