I am using a WebRTC demo application for screen sharing. The demo works perfectly fine but when I try to run the same code in localhost or my own remote server, the code doesn't run.
Any ideas on how can I fix this issue?
Screensharing in Chrome only works over an SSL connection(). You can use a self-signed cert and simply accept it in your browser(this is for Chrome < M36).
Also, for Chrome >M36 you must now use the Chrome.desktopcapture API and the usual way of modifying media constraints and enabling screen-sharing in Chrome internals will not work in newer versions of chrome.
The API is farely simple and MUCH more robust than the previous given option in the media constraints.
Related
I've searched and searched but I guess I can't find the answer I'm looking for.
I'm working on a web app with Google maps and I am having a lot of difficulties trying to debug and test it. I finally found out why I keep getting errors due to chrome blocking calls made not via HTTPS. The app works in Firefox, but not in chrome or any other browser I've tried, safari, dolphin, etc. (All works great locally of course)
What should I do? Is my only option to pay for SSL cert for my free hosting account that I'm using to test my app? I'm just a mid-level developer who isn't really ready to pay for hosting just yet... Am I missing something super common that most developers take advantage of in terms of having some solid way of testing? Hopefully, that makes sense!
try using https://ngrok.com/ it might work out.
It tunnels your local url to public with https too.
For Chrome, there is a flag for this at chrome://flags/#allow-insecure-localhost.
Click on Enable and restart Chrome. From now on invalid certificates on localhost (and just on https over localhost) are accepted.
When I try to login into my website using firebase-authentication with a Nokia Lumia 520 Phone 'auth/web-storage-unsupported' error code is thrown. I'm using AngularFire 2.0.1. Is there any way I can work around this issue becuase some of my users still use these phones with older version of Internet Explorer.
From Firebase Documentation
Thrown if the browser does not support web storage or if the user disables them.
Probably your device has disabled cookies for your website, or does not support them at all.
Third-party cookies may be disabled in your browser. Enable them and try again. It worked for me.
for me the problem was that firebase only work in https and localhost domain. so when I run it locally in my computer it work well. but when I test it in my phone via an IP it suddenly throw this error. so you should find a way to run it with localhost domain. or try to just test with https enabled
I have recently updated my desktop chrome and mobile android chrome.
Since that I have trouble getting my location. It doesn't work with my website JS geolocation script nor here:
http://html5demos.com/geo
It just says failed. I have tried removing location access privilege and changing to ask but it doesn't work.. Any idea what is the reason for that.
You will need to have WAMP accept requests on port 443 and create a certificate in order for the browsers to not complain. There are detailed instructions here: http://www.lmhproductions.com/31/how-to-setup-ssl-on-wamp/
I am working on an Adobe Air product that fetches data from the web using air.URLRequest, from both HTTP and HTTPS sites. It is working absolutely fine on most computers, but there are a few people for which it is stalling when it has to fetch from HTTPS sites.
The error returned is just this: ERROR #2032 Stream Error. Doesn't say much.
I asked the people who had the problem to install Fiddler so that i can debug it and activate HTTPS decryption, but there is no way to debug because it works when Fiddler is open.
The application is built using JavaScript, HTML and CSS and the PC's with the problems are using either Windows Vista or Windows 7. I am also using Windows 7 but it's working fine for me.
Any idea how i could fix this very weird issue ?
Thanks!
Alex
I'm looking to record audio in Chrome without using Flash or Silverlight and then store it in a database or on a server using PHP and MySQL.
The only way I've seen this done is via getUserMedia and some JS in HTML5.
For example:
http://webaudiodemos.appspot.com/AudioRecorder/index.html
I got the source of github here:
https://github.com/cwilso/AudioRecorder
The problem is it doesn't seem to work on my localhost. In fact, the index.html that was included is exactly the same as the hosted version. The hosted version works, but when the same thing is run on my local machine it throws an error saying it can't getUserMedia().
Has anyone implemented something similar or have any insight? Thanks a lot!
For each browser it uses it's own prefix, so for chrome it's webkitGetUserMedia()
see Mozilla's page here for more info on the different prefixes:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getUserMedia
I saw you mentioned localhost, but if you are trying to access the site via file:/// instead of actually using http://localhost (a web server) Chrome will block access to getUserMedia.
If you are trying to access it using file:/// then you need to open Chrome with the command line argument of --allow-file-access-from-files
The following gitHub project records audio to MP3 format directly from the browser using HTML5 and JS only.
It works both on Chrome and Firefox as of now.
https://github.com/nusofthq/Recordmp3js
For a more detailed look at the implementation you can read the blog post:
http://nusofthq.com/blog/recording-mp3-using-only-html5-and-javascript-recordmp3-js/