Atozed Forums

Full Version: TIWAudio not playing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Tried the TIWAudio component with no luck.

If I paste the following in Chrome it plays nicely: file://server/SoundFiles/RadioRing.wav

But if I put a TIWAudio on a form and set AudioFile.URL (or AudioFile.FileName) to "file://server/SoundFiles/RadioRing.wav" it does not play. 
The player show on screen but it's dimmed and length is indicated as 0.

How to play a soundfile?

Best regards, Mikael
I've not used IWAudio, but I found that in order for IWVideo to play a file after I changed the filename, it needed the line " iwvideo1.RefreshAsyncRender;" in order to play. Perhaps there is a similar command needed for IWAudio.
"file://server/SoundFiles/RadioRing.wav" is the issue here

There is a demo showing how to use IWAudio here:

https://github.com/Atozed/IntraWeb/tree/...hi/IWAudio

Basically you just need to se the AudioFile.Filename property to "RadioRing.wav" (no path) and put this file in your wwwroot folder.

BTW, I strongly recommend that you convert this file into a .mp3 or .ogg file format (there are many free converters - including some online - out there). These 2 formats are compact and optimized for the web.