ReleaseMode
The behavior of Audio player when an audio is finished or stopped.
Inherits: enum.Enum
Properties
Properties
LOOPclass-attributeinstance-attribute
Keeps buffered data and plays again after completion, creating a loop. Notice that calling stop method is not enough to release the resources when this mode is being used.
RELEASEclass-attributeinstance-attribute
Releases all resources, just like calling release method.
Info
- On Android, the media player is quite resource-intensive, and this will let it go. Data will be buffered again when needed (if it's a remote file, it will be downloaded again).
- On iOS and macOS, works just like flet_audio.Audio.release method.
STOPclass-attributeinstance-attribute
Stops audio playback but keep all resources intact. Use this if you intend to play again later.