func IsStreamable(videoCodec string, audioCodec ProbeAudioCodec, container Container) error {
	supportedVideoCodecs := defaultSupportedCodecs

	// check if the video codec matches the supported codecs
	if !isValidCodec(videoCodec, supportedVideoCodecs) {
		return fmt.Errorf("%w: %s", ErrUnsupportedVideoCodecForBrowser, videoCodec)
	}

	if !isValidCombo(videoCodec, container, supportedVideoCodecs) {
		return fmt.Errorf("%w: %s/%s", ErrUnsupportedVideoCodecContainer, videoCodec, container)
	}

	if !IsValidAudioForContainer(audioCodec, container) {
		return fmt.Errorf("%w: %s/%s", ErrUnsupportedAudioCodecContainer, audioCodec, container)
	}

	return nil
}
// IsStreamable returns nil if the file is streamable, or an error if it is not.
IsStreamable returns nil if the file is streamable, or an error if it is not.
// IsStreamable returns nil if the file is streamable or an error if it is not .
func IsStreamable(videoCodec string, audioCodec ProbeAudioCodec, container Container) error {
	supportedVideoCodecs := defaultSupportedCodecs
	if !isValidCodec(videoCodec, supportedVideoCodecs) {
		return fmt.Errorf("%w: %s", ErrUnsupportedVideoCodecForBrowser, videoCodec)
	}
	if !isValidCombo(videoCodec, container, supportedVideoCodecs) {
		return fmt.Errorf("%w: %s/%s", ErrUnsupportedVideoCodecContainer, videoCodec, container)
	}
	if !IsValidAudioForContainer(audioCodec, container) {
		return fmt.Errorf("%w: %s/%s", ErrUnsupportedAudioCodecContainer, audioCodec, container)
	}
	return nil
}
func IsStreamable ( videoCodec string , audioCodec ProbeAudioCodec , container Container ) error { supportedVideoCodecs := defaultSupportedCodecs if ! isValidCodec ( videoCodec , supportedVideoCodecs ) { return fmt . Errorf ( " " , ErrUnsupportedVideoCodecForBrowser , videoCodec ) } if ! isValidCombo ( videoCodec , container , supportedVideoCodecs ) { return fmt . Errorf ( " " , ErrUnsupportedVideoCodecContainer , videoCodec , container ) } if ! IsValidAudioForContainer ( audioCodec , container ) { return fmt . Errorf ( " " , ErrUnsupportedAudioCodecContainer , audioCodec , container ) } return nil }
IsStreamable returns nil if the file is streamable, or an error if it is not.
IsStreamable returns nil if the file is streamable or an error if it is not .
// check if the video codec matches the supported codecs