The latest versions of Chrome already do something similar to this. If anything, it causes issues rather than helps in this scenario. See Google Chrome - Mixed Content - Media Not Showing for more details (the ‘Other Details’ section covers the auto upgrade to SSL).
All indications are that the issue you are experiencing is with getting the authentication credentials passed over to your camera.