on 2024 Nov 20 3:41 PM
Hello,
I want to play a specific sound on user error.
I found a way to store it on Jukehost (https://gist.github.com/Moutard3/b925b090ab1d6d20a5d20f054bae7bca#opendrive), it's working but sometimes it takes some time to play it.
Is there a way to store it as resource in the SAP server and play it?
I tried but couldn't achieve it.
Thanks,
Emmanuel.
Request clarification before answering.
Of course.
Upload your sound file (for example in MP3 format) as a resource in Personas Administration, then refer to it via its GUID like this:
function playSound() {
var audio = new Audio( '/sap/bc/personas3/resource/A33EE416E8EE1EDFA9F88240268376BE');
audio.play();
}
playSound();You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.