import getMediaInfo from '@/js_sdk/tencentcloud-plugin-vod/get-media-info.js'
async load() {
if (!this.mediaId) {
uni.showToast({
icon: 'none',
title: '视频ID为空'
});
return;
}
this.mediaInfo = null;
uni.showLoading({
title: "加载中",
mask: true
});
this.load_time();
try {
const result = await getMediaInfo(this.mediaId);
if (result) {
this.mediaInfo = result.BasicInfo;
uni.hideLoading();
} else {
uni.showToast({
icon: 'none',
title: '无效的视频ID,请联系客服'
});
}
} catch (error) {
uni.showToast({
icon: 'none',
title: error.message
});
}
},