audioHandler String|Function|Object
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success
method with the source of the audio.
Example - function
<input id="captcha" />
<script>
$("#captcha").kendoCaptcha({
handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
audioHandler: function (args) {
args.success("https://demos.telerik.com/kendo-ui/captcha/audio?captchaId=" + args.data.captchaId);
}
});
</script>
Example - URL or AJAX
<input id="captcha" />
<script>
$("#captcha").kendoCaptcha({
handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
// audioHandler: "url-to-audio" // Response should return the audio source - base64 stream or url to the audio file
});
</script>