This website requires JavaScript.
Explore
Help
Sign In
apps
/
BareRTC
Watch
1
Star
0
Fork
0
You've already forked BareRTC
Code
Issues
14
Pull Requests
Packages
Projects
Releases
Wiki
Activity
aa162a5b7a
BareRTC
/
pkg
/
config.go
6 lines
70 B
Go
Raw
Normal View
History
Unescape
Escape
Camera connectivity established! * Two users can activate their cameras locally and then connect them together with WebRTC with video and audio support working! * Limitation: users need to be broadcasting video themselves before they can connect to someone's camera. If the offerer doesn't add tracks of their own, the SDP offer doesn't request video channels; so even though the answerer adds their tracks to the connection, they aren't used by the offerer. * As currently implemented, the offerer's camera feed will also appear on screen for the answerer - every video connection opens the feed both ways. Compared to the previous commit (where clients shared SDP messages but not ICE candidates or anything further) the fixes and learnings were: * The back-end was trying to relay candidate messages, but there was a JSON marshalling error (json object casted into a string) - changed the Message type to map[string]interface{} and both sides could exchange ICE candidates. * Both sides needed to add their video tracks to the connection so that there was anything of value to be sent over the WebRTC channel. Other changes: * Server will send a ping message every minute to connected WebSockets.
2023-02-05 05:00:01 +00:00
package
barertc
import
"time"
Re-sign JWT tokens for safer server deployments
2023-04-20 02:55:39 +00:00
const
PingInterval
=
30
*
time
.
Second
Reference in New Issue
Copy Permalink