Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SFUServer ¶ added in v1.1.0
type SFUServer struct { pb.UnimplementedSFUServer SFU *sfu.SFU }
func (*SFUServer) Signal ¶ added in v1.1.0
func (s *SFUServer) Signal(stream pb.SFU_SignalServer) error
Publish a stream to the sfu. Publish creates a bidirectional streaming rpc connection between the client and sfu.
The sfu will respond with a message containing the stream pid and one of two different payload types: 1. `Connect` containing the session answer description. This message is *always* returned first. 2. `Trickle` containing candidate information for Trickle ICE.
If the webrtc connection is closed, the server will close this stream.
The client should send a message containing the session id and one of two different payload types: 1. `Connect` containing the session offer description. This message must *always* be sent first. 2. `Trickle` containing candidate information for Trickle ICE.
If the client closes this stream, the webrtc stream will be closed.