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-file-transfer tutorial issues #120

Open
mclark-ably opened this issue Jan 24, 2024 · 0 comments
Open

WebRTC-file-transfer tutorial issues #120

mclark-ably opened this issue Jan 24, 2024 · 0 comments

Comments

@mclark-ably
Copy link

The following tutorial does not work as expected and the following needs to be updated for it to work

  1. Update script tag to latest version of simple peer in index.html

<script src="https://cdnjs.cloudflare.com/ajax/libs/simple-peer/9.11.1/simplepeer.min.js"></script>

as it fails to connect to the STUN servers using what is currently there

<script src="https://cdnjs.cloudflare.com/ajax/libs/simple-peer/9.1.2/simplepeer.min.js"></script>

Failed to construct 'RTCPeerConnection': 'stun:global.stun.twilio.com:3478?transport=udp' is not a valid stun or turn URL.

  1. After point 1 a new error Failed to execute 'send' on 'RTCDataChannel': RTCDataChannel.readyState is not 'open' occurs and so in connection-helper.js the _onSignal method needs to be updated
_onSignal(signal) {
AblyRealtime.publish(`rtc-signal/${this._remoteClient}`, {
user: clientId,
signal: signal,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant