I am successfully able to drag and drop an mp3 file (0.mp3) into the Project Explorer. When I attempt to drag and drop a second file (1.mp3) into the Project Explorer I get an error saying that the file already exists. It’s not in the Project Explorer so where is the reference that is preventing the insertion into the project. If I knew where that was, I could try to delete the reference.
I lied. I didn’t take the time to create a simple example, I just went the current one. Anyway, this video (https://youtu.be/yByI7vjv2u8) shows me restarting AppStudio and trying to unsuccessfully copy several mp3 files to the Project Explorer. I’ve attached zip files of the program folder and the folder of mp3 files to this posting.
I don’t know if it’s related, but the one mp3 that I successfully added to the project doesn’t play when testing the program. This video (https://youtu.be/GD3S7Ego7c8) shows me playing the audio file in Media Player then points to where the file is reference in the NSB code and then running the program in Chrome. When I press the green button the audio should play but no sound is produced. Note the warnings that appear in the console window. I’ve also attached a copy of the console log.
If i=1 Then
PlaySound("0.mp3")
Else If i=2 Then
PlaySound("0.mp3")
Else If i=3 Then
PlaySound("0.mp3")
Else If i=4 Then
PlaySound("0.mp3")
Else If i=0 Then
PlaySound("0.mp3")
End If
Hi, Just sharing my thoughts. Just like my post, which says speak is deprecated. Now, play mp3 without player consent is no longer allowed. U can mute your audio, and let player unmute your audio. This is all stated in your link pointing to chrome new policy. Best rdgs, tst
Why do you think that the PlaySound sample works correctly? Both that and my program are running in Chrome… One difference I see is that my program is running from my Microsoft OneDrive folders. I don’t know if that makes it a “virtual” folder and if yes, does NSB/Chrome have trouble with that?
Sorry, but I’m just a minimal Basic programmer. Can you suggest what this would look like in Basic format? I tried just replacing “PlaySound” with “PlayTune” and got this error:
Uncaught TypeError: Failed to set the ‘value’ property on ‘AudioParam’: The provided float value is non-finite…
line 954 column 32