NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ViggoPoulsen on July 16, 2012, 03:46:08 AM

Title: Make a smartphone beep
Post by: ViggoPoulsen on July 16, 2012, 03:46:08 AM
Hi
When the customer has pressed a button on the smartphone, I would like the smartphone sound a beep, play a note or in another way let the user know that something is happening. It this possible ?

Best regards
Viggo Poulsen
Title: Re: Make a smartphone beep
Post by: bshields on July 16, 2012, 04:37:07 AM
Hi Viggo,

HTML5 has a tag for audio see http://www.w3schools.com/html5/tag_audio.asp.

I can make my iPhones and Android phones beep (or play audio files) using it.

Regards
Bill
Title: Re: Make a smartphone beep
Post by: ViggoPoulsen on July 16, 2012, 06:12:42 AM
Hi Bill

Thank you, it looks promising.

Best regards
Viggo Poulsen
Title: Re: Make a smartphone beep
Post by: Bruce on July 16, 2012, 07:57:52 AM
see this thread.
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3549.0;prev_next=next

cheers
Bruce
Title: Re: Make a smartphone beep
Post by: ViggoPoulsen on July 19, 2012, 01:13:10 AM
Hi Bruce

In that thread you use this :
onClick: [JavaScript] :'ntPlay(''' & clip(fil:wav) & ''');'

I can not find any reference to ntplay (neither in nettalk or in google). Is it a nettalk or a jave command ?

Best regards
Viggo Poulsen
Title: Re: Make a smartphone beep
Post by: bshields on July 19, 2012, 01:56:22 AM
ntPlay is in netweb.js (last 4 lines). Present in NT6.37 and NT6.33 not present in NT6.18. It uses the HTML5 audio function.
Title: Re: Make a smartphone beep
Post by: ViggoPoulsen on July 19, 2012, 03:35:04 AM
Thank you.
A slight change in the syntax made it work for me:
'ntPlay(<39>beep.wav<39>);'

Best regards
Viggo Poulsen