![]() |
|
TIWAudio not playing - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: TIWAudio not playing (/thread-3052.html) |
TIWAudio not playing - Lenfors - 02-28-2023 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 RE: TIWAudio not playing - davidbaxter - 03-06-2023 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. RE: TIWAudio not playing - Alexandre Machado - 03-21-2023 "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/master/XIV/Delphi/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. |