Discord
Login
Community
DARK THEME

How to reset music?

How can I reset a song to play from the beginning rather than resuming?

my_music = audio.playMusic("musicname")
my_music.setPosition( time )
my_music.play()

setPosition is not described in the documentation .

Audio object methods

object
  play = [native function]
  stop = [native function]
  setVolume = [native function]
  getPosition = [native function]
  getDuration = [native function]
  setPosition = [native function]
end

https://microstudio.io/i/Loginus/audiotester9000/

https://microstudio.io/i/Loginus/audioengine/

https://microstudio.io/i/Loginus/audio3/

https://microstudio.io/i/Loginus/audio/

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community