class Builder
Builder() |
fun build(): VideoResizeOption
Build VideoResizeOption object. |
|
fun setAudioBitrate(audioBitrate: Int): Builder
set desire bitrate of audio default is 128 * 1000 (128kbps) |
|
fun setAudioChannel(audioChannel: Int): Builder
set desire channel of audio default is 1, MONO Channel. |
|
fun setCustomStrategy(customStrategy: MediaFormatStrategy): Builder
set custom strategy of android-transcoder MediaResizer contains all of available strategy in pyxis.uzuki.live.mediaresizer.strategy package, but you may need customize transcoding strategy. just pass your MediaFormatStrategy class. |
|
fun setScanRequest(request: ScanRequest): Builder
set flag for requesting media scanning. to use this settings, please add follow statement in your Application class. MediaResizerGlobal.initializeApplication(this) |
|
fun setVideoBitrate(videoBitrate: Int): Builder
set desire bitrate of video default is 1000 * 1000 (1000kbps) |
|
fun setVideoResolutionType(resolutionType: VideoResolutionType): Builder
set resolution to transcode video. It have four options to set, default is VideoResolutionType.AS720 see VideoResolutionType to see all of available options. |