Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWAudio not playing
#1
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
Reply
#2
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.
Reply
#3
"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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)