package cordova-plugin-media

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type media_status =
  1. | None
  2. | Starting
  3. | Running
  4. | Paused
  5. | Stopped
type media_error =
  1. | Aborted
  2. | Network
  3. | Decode
  4. | None_supported
type error = private Ojs.t
val code : error -> media_error
val message : error -> string
type media = private Ojs.t
val get_current_amplitude : media -> (float -> unit) -> ?error:(error -> unit) -> unit -> unit
val get_current_position : media -> (int -> unit) -> ?error:(error -> unit) -> unit -> unit
val get_duration : media -> int
val play : media -> unit
val pause : media -> unit
val stop : media -> unit
val seek_to : media -> int
val set_volume : media -> int
val start_record : media -> unit
val stop_record : media -> unit
val new_media : string -> (int -> unit) -> ?error_cb:(media_error -> unit) -> ?status_cb:(media_status -> unit) -> unit -> media
OCaml

Innovation. Community. Security.