Skip to content

CoursewareInfo ​

Properties ​

autoHandleUnsupportedElement ​

autoHandleUnsupportedElement: boolean

是否自动移除不支持的元素(默认 true)


bindType ​

bindType: number

绑定类型(1=绑定到课堂的默认课件)


docId ​

docId: string

课件 ID


docName ​

docName: string

文件名


docSize ​

docSize: number

文件大小(bytes)


docType ​

docType: string

文档类型(后端返回,可能大小写混用,如 'pdf'/'PDF')


docUrl ​

docUrl: string

原始文档 URL(非转码 URL)


filePercent? ​

optional filePercent?: number

[运行时] 上传进度百分比(0~100)


forbid? ​

optional forbid?: boolean

[运行时] Web 端是否不支持该音视频格式(由 isWebForbidDocType 计算)


height ​

height: number

高度(px)


operateStatus? ​

optional operateStatus?: boolean

[运行时] 操作状态(UI 下拉菜单展开标志)


owner ​

owner: string

归属者 ID


pages ​

pages: number

总页数


permission ​

permission: CoursewarePermission

权限(CoursewarePermission 枚举值)


schoolId ​

schoolId: number

学校 ID


taskId? ​

optional taskId?: string

[运行时] 上传任务 ID(用于取消上传)


transcodeInfo ​

transcodeInfo: string

转码信息(可读错误描述)


transcodeProgress ​

transcodeProgress: number

转码进度(0~100)


transcodeResult ​

transcodeResult: string

转码结果(无需转码为空,成功为 URL,失败为错误码)


transcodeState ​

transcodeState: TranscodeState

转码状态


transcodeType ​

transcodeType: TranscodeType

转码类型


type? ​

optional type?: string

[运行时] 显示类型(归一化后缀,如 'jpg'/'mp3'/'mp4'/'pdf')


updateTime ​

updateTime: number

更新时间(Unix 秒)


uploadState? ​

optional uploadState?: number

[运行时] 上传状态(2=上传失败)


width ​

width: number

宽度(px)