nicecode-v2/packages/meta/es/VideoPlayer/videoPlayerHelper.js
2024-01-16 11:44:26 +08:00

13 lines
237 B
JavaScript

export function getShowStatus(isLoadingVideo, isEnd, isError) {
var status = null;
if (isLoadingVideo) {
status = 'LOADING';
}
if (isError) {
status = 'ERROR';
}
if (isEnd) {
status = 'END';
}
return status;
}