using AntDesign;
using VideoAnalysisCore.Enum;
namespace VideoAnalysisCore.Model.Dto
{
///
/// 时间线
///
public class TimeBase
{
///
///
///
/// 时间端字符串
/// 内容
public TimeBase(string str, string content)
{
Content = content;
if (string.IsNullOrEmpty(str))
return;
var arr = str.Split(":");
if (arr !=null && arr.Length >= 3)
{
Start = float.Parse(arr[1]);
End = float.Parse(arr[2]);
}
}
public TimeBase()
{
}
///
/// 开始时间
///
public float Start { get; set; }
///
/// 结束时间
///
public float End { get; set; }
///
/// 内容
///
public string? Content { get; set; }
///
/// 时间段 类型
/// 时为 null
///
public TimeBaseTypeEnum? TimeBaseType { get; set; }
}
public class TotalCaptionsDto
{
///
/// 拼接说话人后的最终字幕
///
public string Captions { get; set; } = string.Empty;
///
/// 教师发言时间
/// 秒
///
public decimal TeacherSpeaking { get; set; } = 0;
///
/// 学生发言时间
/// 秒
///
public decimal StudentSpeaking { get; set; } = 0;
///
/// 视频时间轴
///
public IEnumerable? TimeBase { get; set; }
}
}