Posts

Showing posts with the label fix

Solution for "DOMException: Failed to load because no supported source was found" error in Chrome with HTML5 media API

After updating Chrome to release 53 this week, my web application was no longer able to use the media API to capture video with a webcam. This is the third time that I am forced to update my code due to changes in Chrome... this is getting a little annoying! The error message I was getting in my javascript console is: DOMException: Failed to load because no supported source was found I'll keep it short. The problem was the way I set the source of my media element. I was setting the source like this: navigator.getUserMedia(videoObj, function(stream) {    CaptureImageStream = stream;    CaptureImageVideo.src = stream ;    CaptureImageVideo.play(); }, errBack); It seems like this is no longer supported. I changed it to this and it now works again: navigator.getUserMedia(videoObj, function(stream) {    CaptureImageStream = stream;    CaptureImageVideo.src = window.URL.createObjectURL(stream) ;    CaptureImageVi...

Nginx and LetsEncrypt SSL certificate problem with iOS and Safari (fixed)

Image
I have recently started using LetsEncrypt as my main SSL certificate supplier, it's amazing! With the auto-renew cron task, I have literally 0 work to do to keep certificates up to date, and of course, it's free. I recently noticed an issue though: when I visit my websites over HTTPS on my iPhone (and reportedly the problem exists with Safari on Mac OS X as well), the sites simply will not load. This is the error I get: The error reads: " Safari cannot open the page because the network connection was reset. The server may be busy ". After trying to sort out the problem for hours and Googling up the error everywhere, I finally stumbled upon this forum thread . Well thank you Mr. Duckson because that really did fix the problem! The solution: in your server {  ... } block, insert the ssl_session_cache directive with whatever value you deem fit. Example from Nginx documentation:  ssl_session_cache shared:SSL:10m ; Save your configuration, reload Ngi...

Top 3 fixes for: Internet Explorer won't start, IE7, IE8, IE9 opens then closes immediately

Image
I have been having this issue for years and I found the final solution just yesterday! So I thought I would post it here and hopefully help out thousands of other people like me. Before I explain the solution let me describe the problem in detail. For some unknown reason, I have always had this problem on my main computer with Internet Explorer 9 : whenever I want to run it, a blank window appears for 0.1 second then closes instantly , without any error message or anything. The solutions I describe are valid for Internet Explorer 7 (IE7), Internet Explorer 8 (IE8) and Internet Explorer 9 (IE9). I am running Windows 7 but the solutions also work for Windows Vista and Windows XP. There are three solutions here, among which two are the official solutions proposed by Microsoft. Let me tell you right off - Microsoft's solutions had no effect, so you might want to skip to the last one immediately. Solution 1: deleting all IE settings so as to remove potentially blocking add-on...