Im trying to play some sound files in my app. Its working in iOS and android, but when I run it in a windows app I get the following
and heres the code that plays the sound...
function* playSound(action) { Sound.setCategory('Playback'); var sound = new Sound(action.soundName, Sound.MAIN_BUNDLE, (error) => { if (error) { return; } sound.play(); }, {}); }
action.soundName is just a string with the sound file name.
In iOS and android I needed to copy or add the sound files into the native project. do I have to do the same in windows?
Im trying to play some sound files in my app. Its working in iOS and android, but when I run it in a windows app I get the following
and heres the code that plays the sound...
function* playSound(action) { Sound.setCategory('Playback'); var sound = new Sound(action.soundName, Sound.MAIN_BUNDLE, (error) => { if (error) { return; } sound.play(); }, {}); }
action.soundName is just a string with the sound file name.
In iOS and android I needed to copy or add the sound files into the native project. do I have to do the same in windows?
any help is greatly appreciated