From 6e14eabffe5cd330fa03d3ce098504ad12177bc7 Mon Sep 17 00:00:00 2001 From: Joe Turki Date: Sun, 5 Jan 2025 05:59:13 -0600 Subject: [PATCH] Move sdpICEDetails to sdp.go --- sdp.go | 9 +++++++++ sdpicedetails.go | 15 --------------- 2 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 sdpicedetails.go diff --git a/sdp.go b/sdp.go index feff3b31746..42a197bba20 100644 --- a/sdp.go +++ b/sdp.go @@ -816,6 +816,15 @@ func extractICEDetailsFromMedia(media *sdp.MediaDescription, log logging.Leveled return remoteUfrag, remotePwd, candidates, nil } +type sdpICEDetails struct { + Ufrag string + Password string + Candidates []ICECandidate + SDPMid string + SDPMLineIndex uint16 +} + + func extractICEDetails(desc *sdp.SessionDescription, log logging.LeveledLogger) (*sdpICEDetails, error) { // nolint:gocognit details := &sdpICEDetails{ Candidates: []ICECandidate{}, diff --git a/sdpicedetails.go b/sdpicedetails.go deleted file mode 100644 index 4f4f9f9ce21..00000000000 --- a/sdpicedetails.go +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-FileCopyrightText: 2025 The Pion community -// SPDX-License-Identifier: MIT - -//go:build !js -// +build !js - -package webrtc - -type sdpICEDetails struct { - Ufrag string - Password string - Candidates []ICECandidate - SDPMid string - SDPMLineIndex uint16 -}