Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC calls over HTTP causing security warnings #11

Open
twmmason opened this issue Feb 1, 2021 · 3 comments
Open

WebRTC calls over HTTP causing security warnings #11

twmmason opened this issue Feb 1, 2021 · 3 comments

Comments

@twmmason
Copy link

twmmason commented Feb 1, 2021

Thanks for the work - nice app. Purchased full version today.

Is there anyway to get the iOS app to serve over HTTPS as it's failing in Chrome etc due to mixed content security. It is possible to set Chrome flags to get around but is not the best for obvious reasons. Happy to help if needed. I suppose there may be a way of using a proxy service.within React/Angular etc.

@marek-simonik
Copy link
Owner

First of all, thank you for purchasing and using Record3D.

I could not think of any easy and user-friendly solution that would support HTTPS, please see the discussion in this Issue: marek-simonik/record3d-simple-wifi-streaming-demo#1

In a nutshell, as far as I know, I could only use self-signed HTTPS certificate in the iOS app, which would cause browser issues as well. An intermediary HTTPS server ([Record3d on iOS] --- [HTTPS proxy on a PC] --- [WebRTC peer receiving the stream]) would solve this issue, but this would not be easy for non-tech people to get working.

That is why I published the Wi-Fi Streaming demo on an HTTP-only website, so that you can try it without mixed content errors: http://record3d.xyz.

I know it is not a real solution, but only a workaround, however, this is the best I could come up with.

@andybak
Copy link

andybak commented Feb 1, 2021 via email

@marek-simonik
Copy link
Owner

Some bits are definitely being wasted. However, I think it is better than to store the raw 24bit value into RGB due to compression artifacts of the most significant bytes.

If I am not mistaken, then mp4 does not compress the 24bit value at once, but rather it compresses each of the R, B and B color planes separately. So you would need to slice the 24bit value (e.g. 0b011101011011101011101011) into 3x 8bits (i.e. R = 0b01110101, G = 0b10111010 and B = 0b11101011). Compression artifacts occurring in the R and G bytes would hinder the accuracy and would introduce unbearable noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants