nstudio / nativescript-audio

:microphone: NativeScript plugin to record and play audio :musical_note:
Other
149 stars 104 forks source link

Loop on Android not Working #159

Open LucyTurtle opened 4 years ago

LucyTurtle commented 4 years ago

Hello!

When testing my app on Android devices, I've noticed that the loop feature does not work:

  const playerOptions = {
        audioFile: '~/audio/box-fan.mp3.png", //.png because the .mp3 doesn't work directly
        loop: true,
        autoplay: true
  };

  player
    .playFromFile(playerOptions)
    .catch(function(err) {
      console.log('something went wrong...', err);
   });
entelostre commented 3 years ago

not working for me neither! (I fixed the file extension issue using this: issue's comment)