Re: play sounds in HTML5

2019-05-25 Thread hh via use-livecode
To avoid misunderstandings: This relates to a HTML5 standalone, not to using HTML5 in a browser widget. We could use two steps. Step 1. Use one certain audio file. Make this work from the html file containing where audio is a folder at the same location as your html file (on the server

Re: play sounds in HTML5

2019-05-24 Thread Alain Vezina via use-livecode
Hi, I have to admit, I'm a little confused. 1. Do I have to set the defaultFolder to specialFolderPath ("Documents") in openStack ? 2. After I copy the HTML file in the folder Documents, do I have to change it's name ? 3. Do I have to write sometihing like in both HTML files ? 4. Do I

Re: play sounds in HTML5

2019-05-16 Thread hh via use-livecode
> Thanks Sean. > I will have to work hard because I am not familiar with Dynamic HTML. One simple way to do that: Write, a little bit more as Sean wrote, in your html file: Then first set in LC newsound, may be randomly: put "/audio/guitar-melody.wav" into newsound Then issue from LC: do

Re: play sounds in HTML5

2019-05-16 Thread Alain Vezina via use-livecode
Thanks a lot Sean, I think you have the right solution. I will have to work hard because I am not familiar with Dynamic HTML. A few trials and errors should solve the problem. Thanks again Alain > Le 15 mai 2019 à 20:56, Pi Digital via use-livecode > a écrit : > > Hi again Alain > > What

Re: play sounds in HTML5

2019-05-15 Thread Pi Digital via use-livecode
Hi again Alain What you are talking about I think is known as a form of Dynamic HTML. Basically you use LiveCode to build your list of audio files (put the files into tFileList) and choose one (random or picked by the user via a mobilePick...) then replace out the source file pointer ( On 15

Re: play sounds in HTML5

2019-05-15 Thread Alain Vezina via use-livecode
Thanks Sean, You did not misunderstand my request. You make me go one step forward : now I can call a sound to be played from a folder where there are several other sound. Now, how can I played a sound chosen by random your chosen by the user; in other words, how can I replace

Re: play sounds in HTML5

2019-05-14 Thread Pi Digital via use-livecode
Hi Alain The key here is in the line Instead of just piano-melody.wav you would put in the whole path or relative path to the file. Example, if your file structure has a folder called ‘html’ containing your html file and then another folder called ‘audio’ which contains all your audio files

play sounds in HTML5

2019-05-14 Thread Alain Vezina via use-livecode
Hi all, Is there somebody who knows how to play one sound after another using the path of each sound. I read the lesson [ How do I play sound files in HTML5? ] where I have to type the name the sound in the HTML file and to put the sound file into the standalone folder. You know, I want to