question

vikesh-amazon avatar image
vikesh-amazon asked

simple captcha (Audio) not working on Kindle Fire HD.

Hi Everyone, In our application, we are using simplecaptcha library to validate the captcha on the application login form. When the user click on audio captcha link given below the captcha value, it skips the second digit while speaking the captcha value. This issue persists only on the SILK browser which comes preloaded with kindle fire. I have tried replicating the same on chrome browser on kindle but it works fine there. I have tried googling it out but of no use. Is it a known issue from Kindle fire or i am missing something? Any guidance would be appreciated
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Vikesh, Thank you for writing to us. Could you post sample html/javascripts what can reproduce the issue?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vikesh-amazon avatar image
vikesh-amazon answered

try different words <% String remoteHost = request.getRemoteHost(); String modifiedRemoteHost = remoteHost.replace(".", ""); %> load audio

=========================================== javascript: function loadCaptcha() { var url_ = 'ajax/ captchaImage.do?id=' + Math.random(); clearCaptchaText(); setTimeout(function() { $('#captchaImage').attr("src", url_); }, 100); var dwnloadCaptcha = document.getElementById("dwnloadCaptcha"); dwnloadCaptcha.style.display = "none"; } /** * method to load audio captcha for IE and other browsers. */ function loadAudio(context, deviceIP) { var isIE = false; var incompatible = false; var portNumber = ''; if (location.port != '') { portNumber = ':' + location.port; } var uri = location.hostname + portNumber + '/captcha/' + deviceIP + '.wav?id=' + Math.random(); var url_ = 'https://' + uri; // Using BGSOUND Tag for IE if (navigator.appName == "Microsoft Internet Explorer") { $(' ').appendTo('#audioDiv'); setTimeout(function() { $('#audioCaptcha').attr("src", url_); }, 100); isIE = true; } else { // changing the protocol to Non Secure for devices other than Lumia url_ = 'http://' + uri; $( ' ') .appendTo('#audioDiv'); $('#audioCaptcha').attr("src", url_); } var audioElement = document.getElementById("audioCaptcha"); var dwnloadCaptcha = document.getElementById("dwnloadCaptcha"); dwnloadCaptcha.style.display = "block"; var downloadNow = document.getElementById("downloadNow"); var downloadNowExisted = true; if (null == downloadNow) { $( ' Download Audio') .appendTo('#dwnloadCaptcha'); downloadNow = document.getElementById("downloadNow"); downloadNowExisted = false; } if (typeof audioElement.src == 'undefined') { incompatible = true; } // calling load function for blackberry devices if (navigator.userAgent.match(/BlackBerry/i)) { if (incompatible) { downloadNow.href = url_; var edlink = document.getElementById("edlink"); edlink.style.display = "inline"; edlink.data = url_; } else { audioElement.load(); } } if (!incompatible && !downloadNowExisted) { $('#downloadNow').on("click", function(e) { downloadAudio(); return false; }); } if (!isIE) { audioElement.play(); } } /** * method to clear captcha text entered by user */ function clearCaptchaText() { $('#captcha').attr('value', ''); } ================================= i am using simplecaptcha-1.2.1.jar to generate the captcha code , which can be downlaoded from http://code.google.com/p/jarod/downloads/detail?name=simplecaptcha-1.2.1.jar&can=2&q= Please let me know if this suffice or i need to provide more specific. I am using mobile version of our application on kindle.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Vikesh, One more favor. Is this page hosted somewhere? I mean, can you give me the url of the page, so that I can fetch in silk and test?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vikesh-amazon avatar image
vikesh-amazon answered
Hi Sujoy, this is an in-aircraft application and the dev environment in my organisation is specific to the intranet. I might not be able to give you access to the host url. I can try sharing a small jsp snippet. which displays the captcha with the listen link. But i would need some time to build a sample java app with simplecaptcha for you to test it completely. Please suggest if you have any other alternative. Regards, Vikesh
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vikesh-amazon avatar image
vikesh-amazon answered
one more interesting finding i had just now is that it is not reading any captcha form values properly. I just tried it with gmail registration form captcha values. Silk did not read the values correctly and whatever it spoke, everything was overlapping. Request you to please give it a try in your kindle fire HD on silk. Try listening to the captcha value present in the gmail registration form. Regards, Vikesh
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Vikesh, Thank you for detailing the issue. I am going to test it on my own. So to use the audio captcha jar I need to setup a java web server. The link you provided for the library is having only the jar to download, but no additional doc or samples. I found the same in sourceforge having better documentation. http://simplecaptcha.sourceforge.net/ I will update you after I am done with the experiments.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Vikesh, Sorry I did not go through your last post. I tested with simplecaptcha sample hosted here : http://simplecaptcha.sourceforge.net/ I can listen 77363 and 28022 from two audio captcha given there in chrome (from pc) and silk (in kindle) clearly. I did not find any issue. The audio captcha given in Gmail registration page ( https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F%3Ftab%3Dwm&ltmpl=default) is not audible from none of the android phone or Kindle.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.