Mp4Composer

class Mp4Composer

Created by sudamasayuki on 2017/11/15.

Constructors

Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcPath: String, destPath: String, logger: Logger = AndroidLogger())
Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcFileDescriptor: FileDescriptor, destPath: String)
Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcUri: Uri, destPath: String, context: Context, logger: Logger = AndroidLogger())
Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcFileDescriptor: FileDescriptor, destFileDescriptor: FileDescriptor)
Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcUri: Uri, destFileDescriptor: FileDescriptor, context: Context)
Mp4Composer
Link copied to clipboard
fun Mp4Composer(srcUri: Uri, destFileDescriptor: FileDescriptor, context: Context, logger: Logger)

Types

Companion
Link copied to clipboard
object Companion
Listener
Link copied to clipboard
interface Listener

Functions

cancel
Link copied to clipboard
fun cancel()
changePitch
Link copied to clipboard
fun changePitch(isPitchChanged: Boolean): Mp4Composer
customFillMode
Link copied to clipboard
fun customFillMode(fillModeCustomItem: FillModeCustomItem): Mp4Composer
fillMode
Link copied to clipboard
fun fillMode(fillMode: FillMode): Mp4Composer
filter
Link copied to clipboard
fun filter(filter: GlFilter): Mp4Composer
flipHorizontal
Link copied to clipboard
fun flipHorizontal(flipHorizontal: Boolean): Mp4Composer
flipVertical
Link copied to clipboard
fun flipVertical(flipVertical: Boolean): Mp4Composer
listener
Link copied to clipboard
fun listener(listener: Mp4Composer.Listener): Mp4Composer
logger
Link copied to clipboard
fun logger(logger: Logger): Mp4Composer

Set the Logger that should be used. Defaults to AndroidLogger if none is set.

mute
Link copied to clipboard
fun mute(mute: Boolean): Mp4Composer
rotation
Link copied to clipboard
fun rotation(rotation: Rotation): Mp4Composer
shareContext
Link copied to clipboard
fun shareContext(shareContext: EGLContext): Mp4Composer
size
Link copied to clipboard
fun size(width: Int, height: Int): Mp4Composer
start
Link copied to clipboard
@RequiresApi(value = 18)
fun start(): Mp4Composer
timeScale
Link copied to clipboard
fun timeScale(timeScale: Float): Mp4Composer
trim
Link copied to clipboard
fun trim(trimStartMs: Long, trimEndMs: Long): Mp4Composer

Trim the video to the provided times. By default the video will not be trimmed.

videoBitrate
Link copied to clipboard
fun videoBitrate(bitrate: Int): Mp4Composer
videoFormatMimeType
Link copied to clipboard
fun videoFormatMimeType(videoFormatMimeType: VideoFormatMimeType): Mp4Composer