NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started 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
-
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
-
Hi Bill
Thank you, it looks promising.
Best regards
Viggo Poulsen
-
see this thread.
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3549.0;prev_next=next
cheers
Bruce
-
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
-
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.
-
Thank you.
A slight change in the syntax made it work for me:
'ntPlay(<39>beep.wav<39>);'
Best regards
Viggo Poulsen