There are currently two ways to play audio in Decentraland:
AudioClip: which allows to play static, bundled audio files
AudioStream: which allows to play remote audio streams
We have a use case where we want to play remote audio clips that are dynamically generated (e.g. via an API) during a Decentraland experience. Using an AudioStream partially works with a remote MP3 file, but it loops continuously when it reaches the end of the file, and the AudioStream does not provide functionality to turn off the looping behaviour.
Would be great to add a way to play remote clips in the same way as AudioClip!
There are currently two ways to play audio in Decentraland:
AudioClip
: which allows to play static, bundled audio filesAudioStream
: which allows to play remote audio streamsWe have a use case where we want to play remote audio clips that are dynamically generated (e.g. via an API) during a Decentraland experience. Using an
AudioStream
partially works with a remote MP3 file, but it loops continuously when it reaches the end of the file, and theAudioStream
does not provide functionality to turn off the looping behaviour.Would be great to add a way to play remote clips in the same way as
AudioClip
!