Playing sounds in Browser widget on Windows 10
Posted: Wed Nov 07, 2018 2:52 pm
Hello All,
We are developing a Livecode application that is using the Browser widget to display a web page. It's an educational app for young learners. The web page has a list of words. When a word is clicked, a picture showing the meaning of the word is displayed and a recording of the word being spoken is played. For example, click 'cat' and you will briefly see a picture of a cat and hear someone saying 'cat'.
I'm developing on macOS 10.12.6 using Livecode Indy 9.0.1. In the Livecode IDE everything is fine, a standalone app for macOS works fine, however, the standalone app for Windows shows the pictures but does not play the audio - no sounds at all (Windows 10).
The web page is using JavaScript to show the graphics and play the audio. The code to play the audio is:
var audio = new Audio('word/' + myFile + '.mp3');
audio.play();
Any thoughts anybody as to why it's not playing sound on Windows 10 (same app works fine in a standard browser, e.g. Firefox)?
We are developing a Livecode application that is using the Browser widget to display a web page. It's an educational app for young learners. The web page has a list of words. When a word is clicked, a picture showing the meaning of the word is displayed and a recording of the word being spoken is played. For example, click 'cat' and you will briefly see a picture of a cat and hear someone saying 'cat'.
I'm developing on macOS 10.12.6 using Livecode Indy 9.0.1. In the Livecode IDE everything is fine, a standalone app for macOS works fine, however, the standalone app for Windows shows the pictures but does not play the audio - no sounds at all (Windows 10).
The web page is using JavaScript to show the graphics and play the audio. The code to play the audio is:
var audio = new Audio('word/' + myFile + '.mp3');
audio.play();
Any thoughts anybody as to why it's not playing sound on Windows 10 (same app works fine in a standard browser, e.g. Firefox)?