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 <source id='audio1' src='/audio/piano-melody.wav' type='audio/wav'> in both HTML files ? 4. Do I have to write it in a structure like <audio id="myAudio"> <source src="piano-melody.wav" type="audio/wav"> </audio> ? I hope I'm not bothering you. I have a long experience of programming in LC, but this is the first time I have tried HTML5 and I have no knowledge of Java Script. Regards, Alain > > Le 16 mai 2019 à 12:11, hh via use-livecode <use-livecode@lists.runrev.com> a > écrit : > >> 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: > <source id='audio1' src='/audio/piano-melody.wav' type='audio/wav'> > > Then first set in LC newsound, may be randomly: > > put "/audio/guitar-melody.wav" into newsound > > Then issue from LC: > > do "document.getElementById('audio1').src='" & newsound & "'" in widget > "browser" > > That's all, nothing complicated. > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode