Versions in this module Expand all Collapse all v0 v0.1.0 Jun 23, 2026 Changes in this version + const DefaultVideoLivenessTimeoutMS + const VideoPolicyReject + const VideoPolicyWarn + func CheckVideoEndpoint(ctx context.Context, mediaURL string, cfg VideoGuidance) error + func CheckVideoMetadata(mimeType string, mediaURL string, cfg VideoGuidance) error + func IsVideoMIME(value string) bool + func NormalizePolicy(cfg *PolicyConfig) + func NormalizeVideoGuidance(cfg *VideoGuidance) + func ValidatePolicy(prefix string, cfg PolicyConfig) error + func ValidateVideoGuidance(prefix string, cfg VideoGuidance) error + type Metrics struct + func (m *Metrics) NodeVideoLivenessCheck() + func (m *Metrics) NodeVideoLivenessFailure() + func (m *Metrics) VideoMetadataCheck() + func (m *Metrics) VideoMetadataFailure() + func (m *Metrics) WriteMetrics(w io.Writer) + type PolicyConfig struct + Video VideoMetadataPolicy + type VideoGuidance struct + AllowedMIMETypes []string + AllowedSchemes []string + BitrateMaxBPS int64 + BitrateMinBPS int64 + ExpectedCodec string + ExpectedContainer string + ExpectedFrameRateFPS int + ExpectedHeight int + ExpectedTransport string + ExpectedWidth int + LivenessCheckEnabled bool + LivenessTimeoutMS int + RequireProgressive bool + func DefaultVideoGuidance() VideoGuidance + type VideoMetadataPolicy struct + Enabled bool + Enforcement string + func DefaultVideoPolicy() VideoMetadataPolicy + func (p VideoMetadataPolicy) CheckMessage(msg *sapientv2.SapientMessage, metrics *Metrics) []Violation + type Violation struct + Path string + Reason string