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 }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
@@ -568,27 +568,10 @@ A publication can send either media or data, but a QUIC *transport* channel can
568
568
569
569
object(TransportOptions)::
570
570
{
571
-
type: "webrtc" | "quic-p2p",
571
+
type: "webrtc" | "quic",
572
572
id: string(transportId) | null, // null will result to create a new transport channel. Always be null if transport type is webrtc because webrtc agent doesn't support multiple transceivers on a single PeerConnection at this time.
Step 5: Receive transport ready and session ready from server.
628
+
Step 3: Create a new QuicTransport or get an existing QuicTransport, then create a new BidirectionalStream or SendStream. Write data to stream. The URL of QuicTransport should be included in token. QuicTransport is shared by all media streams, data streams and signaling which belong to the same client.
This post defines the payload and message format for data transmitted over [QuicTransport](https://wicg.github.io/web-transport/#quic-transport).
4
+
5
+
## Streams
6
+
7
+
Both server and client can initialize a stream. When a stream is created, initial side sends a session ID, which is a 128 bit length message to the remote side. Session ID could be a publication ID or subscription ID as defined in [Client-Portal Protocol](https://github.com/open-webrtc-toolkit/owt-server/blob/master/doc/Client-Portal%20Protocol.md). As the session ID issued by server may less than 128 bit right now, fill it with 0 in most significant bits. Session ID 0 is reserved for signaling. When remote side receives the session ID, it should check whether session ID is valid. Terminate the stream if session ID is invalid, or send the same session ID to client if it is valid. Depends on the type of stream it created, one side or both sides are ready to send data.
After creating a QuicTransport, a stream with session 0 should be created for authentication. If signaling is transmitted over QuicTransport, authentication follows the regular process defined by [Client-Portal Protocol](https://github.com/open-webrtc-toolkit/owt-server/blob/master/doc/Client-Portal%20Protocol.md). Otherwise, client sends a following message with UTF-8 encoding in JSON format to server.
0 commit comments