{
"type": "Enum",
"name": "ReleaseMode",
"description": "Controls the behavior of the Audio player when an audio is finished or stopped.",
"inherits": "enum.Enum",
"properties": [
{
"name": "LOOP",
"value": "'loop'",
"description": "Keeps buffered data and plays again after completion, creating a loop. Resources are not released automatically."
},
{
"name": "RELEASE",
"value": "'release'",
"description": "Releases all resources, similar to calling the Audio.release() method. On Android, this releases the media player. On iOS/macOS, it's equivalent to Audio.release().",
"notes": "Data will be buffered again when needed."
},
{
"name": "STOP",
"value": "'stop'",
"description": "Stops audio playback but keeps all resources intact. Suitable for intended re-playback."
}
]
}
Previous
arrow_back
Audiostatechangeevent