- Code: Select all
application.playSound('media:///' + globals.gWAVToPlay + '.wav')
This works fine in the web client when previewed from Developer, but when solution is run in the web client from the Server, this error is returned in the log:
java.net.MalformedURLException: unknown protocol: media
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.servoy.j2db.scripting.JSApplication$3.run(JSApplication.java:5)
at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:16)
at java.lang.Thread.run(Unknown Source)
As an alternative to referencing files in the media library, I tried using the servoy_blobloader, but even though the rowid1 value was correct, it only ever plays the sound file from the first record in the database.
Does anyone have a way to make either of these methods work correctly?
Steve in LA