var sound = require(“nativescript-sound”);
No errors in console ( and if I put other non-existing filename - then it shows an error : “file not found”) - so it does see the file.
Why doesn’t it play ?
If I put
let tada = sound.create("~/raw/beep.mp3");
as a field ( outside a function):
tada = sound.create("~/raw/beep.mp3");
then it does work.
I don’t want to initialize it as a field.
Is it possible to use it as a pseudo :