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.
Set the audio handler as 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>
Set the Audio Handler as 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>