I'm trying to play a sound on the webui using the following code:
Audio audio = new Audio(ThemeManager.getThemeResource("audio/bing.mp3"));
But the result i get is the error message from the images i attached (first is chrome, second is firefox). The sound is then not played but chrome downloads the mp3 file automatically.
I searched for an hour and the only solution i found, which works at least for chrome, is to make some changes to the zk.xml. I attached a patch and now the error message is gone.
However, the sound i only played in chrome. Firefox doesn't throw an error anymore but i also cannot hear the sound.
If you have a better solution, please tell me. Otherwise, we can maybe test the patch and apply it to the trunk.
iDempiere Release 2.0 + Chrome
, could you please check in the zk7 branch if the behavior is the same, or is it fixed there?
Hi Carlos and Jan,
I tested a sound play with release 4.1 (newest changeset) branch and everything worked fine (tested on chrome and firefox), so i think that this issue can be closed.