mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-05 14:56:56 +08:00
chroe: fit engine's update
This commit is contained in:
4
main.go
4
main.go
@@ -60,7 +60,6 @@ type WebRTCConfig struct {
|
||||
config.Subscribe
|
||||
ICEServers []ICEServer
|
||||
PublicIP []string
|
||||
PublicPort uint16
|
||||
Port string `default:"tcp:9000"`
|
||||
PLI time.Duration `default:"2s"` // 视频流丢包后,发送PLI请求
|
||||
m MediaEngine
|
||||
@@ -137,9 +136,6 @@ func (conf *WebRTCConfig) Play_(w http.ResponseWriter, r *http.Request) {
|
||||
suber.OnICECandidate(func(ice *ICECandidate) {
|
||||
if ice != nil {
|
||||
suber.Info(ice.ToJSON().Candidate)
|
||||
if conf.PublicPort != 0 {
|
||||
ice.Port = conf.PublicPort
|
||||
}
|
||||
}
|
||||
})
|
||||
if err = suber.SetRemoteDescription(SessionDescription{Type: SDPTypeOffer, SDP: suber.SDP}); err != nil {
|
||||
|
Reference in New Issue
Block a user