Hi, I get an error when I try to play a sound…
I have a button, the scripting code is:
path = system.file.openFile("wav")
if path != None:
bytes = system.file.readFileAsBytes(path)
event.source.parent.getComponent("Sound Player").soundData = bytes
And when I click on it, select a wav file I got this:
[ul]
UnsupportedAudioFileException: could not get audio input stream from input stream
Ignition v7.7.6 (b2015120217)
Java: Oracle Corporation 1.8.0_73
[/ul]
Any suggestion or comment will be appreciate!
Regards!