You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5ec6cac
Browse filesBrowse the repository at this point in the historyBrowse files
The Java client is a peer of the client API, with SignalingManager as its
Signaling over the example's own message format. A new peer calls the
browser whenever it joins. WebSocket sends are queued, since a WebSocket
takes one at a time, and the browser reuses its connection when the Java
side renegotiates.
The [`WebClientExample`](https://github.com/devopvoid/webrtc-java/blob/master/webrtc-examples/src/main/java/dev/onvoid/webrtc/examples/web/WebClientExample.java)demonstrates how to combine WebSocket signaling with WebRTC peer connections for real-time communication between web and Java clients.
139
+
The [`WebClientExample`](https://github.com/devopvoid/webrtc-java/blob/master/webrtc-examples/src/main/java/dev/onvoid/webrtc/examples/web/WebClientExample.java)calls a browser from Java over WebSocket signaling, with the [Client API](/guide/client-api). The browser client is served by the example's `WebServer`.
140
140
141
141
**Key features demonstrated:**
142
142
- Connecting to a signaling server using WebSockets
- Joining and leaving rooms for multi-user communication
147
-
-Using custom audio sources for audio streaming
143
+
-Implementing a `Signaling` over the application's own message format, which also names the sender and receiver of each message
144
+
-Sending generated audio and video, pushed into tracks of the runtime
145
+
-Letting the peer negotiate by itself, and starting a new peer whenever the browser joins the room
146
+
- Joining and leaving rooms
147
+
-Logging the audio and video the browser sends
148
148
149
149
This example is valuable for applications that need to establish WebRTC connections between Java clients and web browsers, enabling cross-platform real-time communication with audio and video.
0 commit comments