TIWAudio not playing

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWAudio not playing

Forum link

 


 

02-28-2023, 12:37 PM:

 

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

 

 

 


 

03-06-2023, 10:17 PM:

 

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.

 


 

03-21-2023, 06:50 AM:

 

"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.