erase fingerprints (#177)

* add external modules and patches

* migrate pion webrtc to vendored headlessclient, drop local pion replaces

* use chrome ice credentials, one webrtc api per peer connection

* send one user agent everywhere, use the vendored websocket

* route the telemost joiner through headlessclient, drop the dead keylog

* answer telemost dtls without a hello verify round trip

* follow the headlessclient dtls 1.3 mimicry rename

* follow the headless-client rename and apply the profile before the caller settings

* build every webrtc api through relay/headlessapi

* register chrome rtp header extensions for every pion consumer

* dial vk webtransport signaling through the headless quic profile

* dial dion and wb stream through the headless chrome profile

* announce chrome's http/3 settings on the vk webtransport signaling

* send chrome header blocks on bitrix http and livekit websocket

* send chrome's webtransport connect headers on vk signaling

* stop passing invented track names to the library

* move wbp http paths onto the headlessclient profile

* migrate to a published headlessclient

* dedup go.mod
This commit is contained in:
kulikov0 authored and GitHub committed 2026-09-12 20:39:06 +02:00
1 parent 88a0b5f1b9
commit a735b4176e
71 files changed
+571 -2140

No files matched your search

+1 -22
View File
@@ -5,7 +5,7 @@ import (
"net"
"strings"
"github.com/pion/webrtc/v4"
"github.com/kulikov0/headless-client/webrtc"
)
type TransceiverPlan struct {
@@ -59,27 +59,6 @@ type PionPeer struct {
DatachannelDescs []DataChannelDesc
}
// NewPionAPI builds a Pion API with default codecs. customEngine may be nil
// for the standalone (desktop) case; pass a configured *webrtc.SettingEngine
// on Android to plug in AndroidNet / custom dial / ICE filters.
func NewPionAPI(customEngine ...*webrtc.SettingEngine) *webrtc.API {
mediaEngine := &webrtc.MediaEngine{}
if err := mediaEngine.RegisterDefaultCodecs(); err != nil {
panic(fmt.Errorf("dion: register default codecs: %w", err))
}
engine := webrtc.SettingEngine{}
if len(customEngine) > 0 && customEngine[0] != nil {
engine = *customEngine[0]
}
return webrtc.NewAPI(
webrtc.WithMediaEngine(mediaEngine),
webrtc.WithSettingEngine(engine),
)
}
// ResolveICEServerHosts walks each ICEServerEntry and rewrites any non-IP host
// in its URLs via the resolver. Used on Android where Pion has no DNS access
// and hostnames must be pre-resolved through the Java side.
func ResolveICEServerHosts(entries []ICEServerEntry, resolveFn func(host string) (string, error), logFn func(string, ...any)) []ICEServerEntry {
if resolveFn == nil {
return entries