external class Media
Cordova media class.
Media(src: String, mediaSuccess: (() -> Unit)? = definedExternally, mediaError: ((MediaError) -> Unit)? = definedExternally, mediaStatus: ((Int) -> Unit)? = definedExternally)
Cordova media class. |
val duration: Number |
|
val position: Number |
fun getCurrentAmplitude(mediaSuccess: (Number) -> Unit, mediaError: ((Int) -> Unit)? = definedExternally): Unit |
|
fun getCurrentPosition(mediaSuccess: (Number) -> Unit, mediaError: ((Int) -> Unit)? = definedExternally): Unit |
|
fun getDuration(): Number |
|
fun pause(): Unit |
|
fun pauseRecord(): Unit |
|
fun play(): Unit |
|
fun release(): Unit |
|
fun resumeRecord(): Unit |
|
fun seekTo(millis: Number): Unit |
|
fun setRate(rate: Number): Unit |
|
fun setVolume(volume: Number): Unit |
|
fun startRecord(): Unit |
|
fun stop(): Unit |
|
fun stopRecord(): Unit |
val MEDIA_NONE: Int |
|
val MEDIA_PAUSED: Int |
|
val MEDIA_RUNNING: Int |
|
val MEDIA_STARTING: Int |
|
val MEDIA_STOPPED: Int |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
suspend fun Media.getCurrentAmplitude(): Number
Returns the current amplitude within an audio file. |
|
suspend fun Media.getCurrentPosition(): Number
Returns the current position within an audio file. |