Audio
actual constructor()
actual constructor()
Play audio from a url or path (String).
Parameters
resource
provides the link to the audio file online
auto Play
play after AudioState.READY is reached (defaults to "false").
Example:
val audioUrl = "https://dare.wisc.edu/wp-content/uploads/sites/1051/2008/11/MS072.mp3"
val audio = Audio(audioUrl, true) // AutoPlay is marked "true"Content copied to clipboard
Play audio from a url or path (String).
Parameters
context
provide the Platform Context (this is mostly to accommodate Android)
compose Resource
provides the link to the audio file online
auto Play
play after AudioState.READY is reached (defaults to "false").
Example:
val audioUrl = "https://dare.wisc.edu/wp-content/uploads/sites/1051/2008/11/MS072.mp3"
val audio = Audio(audioUrl, true) // AutoPlay is marked "true"Content copied to clipboard
expect constructor()
actual constructor()
actual constructor()