Adds the explicit Windows WGC/D3D11 hardware-only Media Foundation H.264 source, process-tree audio, direct Go/Pion fanout, source-aware UI/gate, and unique evaluation package helper. Browser VP8 remains the default. Local acceptance and bounded real-device evidence are recorded in the PR; GitHub jobs were billing-blocked before executing any step.
27 lines
574 B
Go
27 lines
574 B
Go
//go:build !windows
|
|
|
|
package windowcapture
|
|
|
|
import "context"
|
|
|
|
type unsupportedProvider struct{}
|
|
|
|
func NewProvider() Provider { return unsupportedProvider{} }
|
|
|
|
func (unsupportedProvider) List(context.Context) ([]Target, error) { return nil, ErrUnavailable }
|
|
|
|
func (unsupportedProvider) CaptureAudio(context.Context, Target, func(PCMChunk) error) error {
|
|
return ErrUnavailable
|
|
}
|
|
|
|
func (unsupportedProvider) CaptureWindow(
|
|
context.Context,
|
|
Target,
|
|
<-chan struct{},
|
|
func(PCMChunk) error,
|
|
func(H264AccessUnit) error,
|
|
func(Status) error,
|
|
) error {
|
|
return ErrUnavailable
|
|
}
|