提交 cdf2983a 编写于 作者: guangjun.yang's avatar guangjun.yang

获取视频失败,请检查播放链接是否有效

上级 20cea426
因为 它太大了无法显示 源差异 。您可以改为 查看blob
此差异已折叠。
此差异已折叠。
......@@ -287,10 +287,12 @@ export default {
coverpic: require("../images/video-cover.png"),
width: "415", //视频的显示宽度,请尽量使用视频分辨率宽度
height: "210", //视频的显示高度,请尽量使用视频分辨率高度
trySeeTime: ''
trySeeTime: '',
x5_fullscreen: false,
},
//projectStatus: 1, //1没有获得证书 2是获得全部证书
attachmentUrl: require("../images/banner-default.png"),
// attachmentUrl: require("../images/banner-default.png"),
attachmentUrl: require("../images/video-cover.png"),
bgColor: "none",
navTitle: "项目详情",
// compTitle: "组件名称",
......@@ -939,24 +941,19 @@ export default {
_this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false;
}
_this.bannerType = 2; // 这里写死是2
let mp4Url = _this.videoOptions.mp4;
// 判断是否是mp4
if(mp4Url.lastIndexOf('.mp4') > 0) {
_this.bannerType = 2;
_this.videoOptions.mp4 += 2;
} else {
_this.bannerType = 1;
}
console.log('location', location);
console.log('_this.videoOptions.mp4, trySeeTime, autoplay', _this.videoOptions.mp4, _this.videoOptions.trySeeTime, _this.videoOptions.autoplay);
// 如果绑定了卡,则提示学习下一节
// if (res.data.attachmentType == 2) {
// _this.videoOptions.mp4 = res.data.attachmentUrl;
// _this.videoOptions.trySeeTime = res.data.trySeeTime;
// } else {
// _this.attachmentUrl = res.data.attachmentUrl;
// }
// _this.bannerType = res.data.attachmentType;
// if (_this.bannerType == 2) {
// _this.clientType = __isWeb ? 1 : __isAndroid ? 2 : 3;
// }
// 先设置视频URL再显示视频组件 ------------ END
_this.project = res.data;
if (_this.project.projectIntro) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册