HTML5 Audio/Sound Effects Example

Bringing your stacks to the web

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gshearne
Posts: 36
Joined: Mon Jun 02, 2014 4:41 am

HTML5 Audio/Sound Effects Example

Post by gshearne » Sat Mar 25, 2017 10:55 am

Hi,
Can anyone tell me if audio is working in HTML5? And if so does anyone have any code examples i could use. I read some old threads that indicated it was not implemented but I thought/hoped perhaps that had changed.

I have tested a simple stack on 8.13 and 9.0 dp 2 and 9.0 dp 6 with no success (actually my stack wont run at all under 9.0 dp 6).
Thanks
Greg

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: HTML5 Audio/Sound Effects Example

Post by [-hh] » Sun Mar 26, 2017 11:53 pm

gshearne wrote:Can anyone tell me if audio is working in HTML5?
TMHO, the answer is
NO from ordinary LCScript, as you tested, but
MAY BE by using do as javascript (didn't try until now).
shiftLock happens

gshearne
Posts: 36
Joined: Mon Jun 02, 2014 4:41 am

Re: HTML5 Audio/Sound Effects Example

Post by gshearne » Mon Mar 27, 2017 11:34 pm

Thanks. I will try that.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: HTML5 Audio/Sound Effects Example

Post by [-hh] » Sat Jul 08, 2017 11:46 am

In May 2017 a LC-lesson appeared to that (uses a player in the webpage by javascript):
http://lessons.livecode.com/m/4071/l/74 ... s-in-html5

For a video example see the source of
http://hyperhh.de/html5/video-funHTML5- ... -4hhX.html
together with the stack (replace "hhX.html" with ".zip").
shiftLock happens

Post Reply

Return to “HTML5”