examples: add reflect-http-html: Example on how to set up a WebRTC-Connection over HTTP and with HTML and JavaScript. #766
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While trying to setup an "real world" application with HTTP, HTML and JS which would transfer audio to a rust-webrtc application I found no example that showed how to transfer ice-candidates from the browser to the application an back, even though this seems to be one of the most common use-cases. For people getting started with WebRTC this can be a real show-stopper, proven by various comments about communication only working in Local-LAN where the webrtc-server can freely connect to the browser and no further ice-negotiation is required.
I therefore would like to sponsor this minimal, documented and functionally-complete example which showcases the use of the rust webrtc-crate together with actix and appropriate html + javascript to create a internet-compatible WebRTC connection.
Please let me know if you have any requests for changes.
Best regards,
Peter