mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 17:32:23 +00:00
Replace Target with params to indicate direction (#955)
* Replace Target with params to indicate direction * Add missed send answer call
This commit is contained in:
1 parent
5223c8292e
commit
06a46d5de0
4 files changed
+36
-32
No files matched your search
@@ -141,17 +141,19 @@ func NewRTCClient(conn *websocket.Conn) (*RTCClient, error) {
|
||||
// Same applies for subscriber transport also
|
||||
//
|
||||
c.publisher, err = rtc.NewPCTransport(rtc.TransportParams{
|
||||
Target: livekit.SignalTarget_SUBSCRIBER,
|
||||
Config: &conf,
|
||||
EnabledCodecs: codecs,
|
||||
Config: &conf,
|
||||
DirectionConfig: conf.Subscriber,
|
||||
EnabledCodecs: codecs,
|
||||
IsOfferer: true,
|
||||
IsSendSide: true,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
c.subscriber, err = rtc.NewPCTransport(rtc.TransportParams{
|
||||
Target: livekit.SignalTarget_PUBLISHER,
|
||||
Config: &conf,
|
||||
EnabledCodecs: codecs,
|
||||
Config: &conf,
|
||||
DirectionConfig: conf.Publisher,
|
||||
EnabledCodecs: codecs,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user