Skip to content

Commit

Permalink
✨ feat: Implement backend logic for screen sharing
Browse files Browse the repository at this point in the history
Added WebSocket and WebRTC integration to enable screen sharing functionality in the live class routes. This implementation ensures that only authenticated users can start and view screen shares, leveraging the existing WebSocket setup for real-time communication. Key frame dispatching, ICE candidate handling, and SDP negotiation are correctly managed to support robust screen sharing sessions.

Related issue: #80
  • Loading branch information
yuminn-k committed May 8, 2024
1 parent 2683148 commit c9122ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,5 +837,6 @@ func setupLiveClassRoutes(router *gin.Engine) {
{
live.GET("screen-share/start", gin.WrapF(startScreenSharingHandler))
live.GET("screen-share/stop", gin.WrapF(stopScreenSharingHandler))
live.GET("/ws", gin.WrapF(websocketHandler))
}
}

0 comments on commit c9122ca

Please sign in to comment.