namespace BililiveRecorder.FlvProcessor
{
public enum EnabledFeature : int
{
///
/// 同时启用两个功能
///
Both,
///
/// 只使用即时回放剪辑功能
///
ClipOnly,
///
/// 只使用录制功能
///
RecordOnly,
}
public static class EnabledFeatureExtenstion
{
public static bool IsClipEnabled(this EnabledFeature enabledFeature)
{
return enabledFeature == EnabledFeature.Both || enabledFeature == EnabledFeature.ClipOnly;
}
public static bool IsRecordEnabled(this EnabledFeature enabledFeature)
{
return enabledFeature == EnabledFeature.Both || enabledFeature == EnabledFeature.RecordOnly;
}
}
}