Files
overlord/Overlord-Client/cmd/agent/webrtcpub/stubs.go
T

31 lines
653 B
Go
Raw Normal View History

2026-05-13 13:44:33 -05:00
//go:build !overlord_webrtc
package webrtcpub
import (
"context"
"errors"
)
var ErrNotCompiled = errors.New("webrtc support not compiled in (build with -tags overlord_webrtc)")
type Publisher struct{}
2026-05-13 20:19:21 -05:00
func Start(_ context.Context, _ Kind, _ Options) (*Publisher, error) {
2026-05-13 13:44:33 -05:00
return nil, ErrNotCompiled
}
2026-05-13 20:19:21 -05:00
func Stop(_ Kind) {}
func StopAll() {}
2026-05-13 13:44:33 -05:00
func (*Publisher) Close() {}
2026-05-13 20:19:21 -05:00
func StartP2POffer(_ context.Context, _ Kind, _ string, _ string, _ P2POfferCallbacks, _ bool, _ bool) (string, error) {
2026-05-13 13:44:33 -05:00
return "", ErrNotCompiled
}
2026-05-13 20:19:21 -05:00
func AddP2PICECandidate(_ Kind, _ string, _ ICECandidate) {}
2026-05-13 13:44:33 -05:00
2026-05-13 20:19:21 -05:00
func StopP2P(_ Kind, _ string) {}
func StopAllP2P() {}