prepareAudio

open fun prepareAudio(filePath: String, bitRate: Int): Boolean

Return

true if success, false if you get a error (Normally because the encoder selected doesn't support any configuration seated or your device hasn't a H264 encoder).

Parameters

filePath

to audio file.

bitRate

AAC in kb.

Throws

Normally file not found.


open fun prepareAudio(fileDescriptor: FileDescriptor, bitRate: Int): Boolean

Return

true if success, false if you get a error (Normally because the encoder selected doesn't support any configuration seated or your device hasn't a H264 encoder).

Parameters

fileDescriptor

to audio file.

bitRate

AAC in kb.

Throws

Normally file not found.


open fun prepareAudio(context: Context, uri: Uri, bitRate: Int): Boolean

Return

true if success, false if you get a error (Normally because the encoder selected doesn't support any configuration seated or your device hasn't a H264 encoder).

Parameters

uri

Uri to audio file.

bitRate

AAC in kb.

Throws

Normally file not found.


open fun prepareAudio(filePath: String): Boolean
open fun prepareAudio(context: Context, uri: Uri): Boolean