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

Run TURN server to hopefully fix RTC issues #35

Closed
6 tasks done
TheUnlocked opened this issue Aug 24, 2022 · 0 comments
Closed
6 tasks done

Run TURN server to hopefully fix RTC issues #35

TheUnlocked opened this issue Aug 24, 2022 · 0 comments
Labels
enhancement New feature or request rtc Relating to real-time communication

Comments

@TheUnlocked
Copy link
Owner

TheUnlocked commented Aug 24, 2022

  • Create STUN/TURN server

  • Add a POST /api/classroom/[classroomId]/activity/ice endpoint that returns all ICE servers:

interface Response {
    servers: RTCIceServer[],
    ttl?: number;
}

See RTCIceServer

  • When WEBRTC_STUN_SERVER_URL is set:
    • Include the stun server in the response
  • When WEBRTC_TURN_SERVER_URL and WEBRTC_TURN_SECRET is set:
    • Include the turn server in the response, using WEBRTC_TURN_SECRET as the secret to generate credentials (see this for implementation details).
@TheUnlocked TheUnlocked added enhancement New feature or request rtc Relating to real-time communication labels Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rtc Relating to real-time communication
Projects
None yet
Development

No branches or pull requests

1 participant