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

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

上级 720c7591
此差异已折叠。
此差异已折叠。
...@@ -231,10 +231,13 @@ export default { ...@@ -231,10 +231,13 @@ export default {
autoplay: true, //iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的 autoplay: true, //iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
coverpic: require("../images/video-cover.png"), coverpic: require("../images/video-cover.png"),
width: "415", //视频的显示宽度,请尽量使用视频分辨率宽度 width: "415", //视频的显示宽度,请尽量使用视频分辨率宽度
height: "210" //视频的显示高度,请尽量使用视频分辨率高度 height: "210", //视频的显示高度,请尽量使用视频分辨率高度
trySeeTime: '',
x5_fullscreen: false,
}, },
//projectStatus: 1, //1没有获得证书 2是获得全部证书 //projectStatus: 1, //1没有获得证书 2是获得全部证书
attachmentUrl: require("../images/banner-default.png"), // attachmentUrl: require("../images/banner-default.png"),
attachmentUrl: require("../images/video-cover.png"),
bgColor: "none", bgColor: "none",
navTitle: "项目详情", navTitle: "项目详情",
// compTitle: "组件名称", // compTitle: "组件名称",
...@@ -755,23 +758,17 @@ export default { ...@@ -755,23 +758,17 @@ export default {
_this.videoOptions.trySeeTime = 300000; _this.videoOptions.trySeeTime = 300000;
_this.videoOptions.autoplay = false; _this.videoOptions.autoplay = false;
} }
_this.bannerType = 2; // 这里写死是2 let mp4Url = _this.videoOptions.mp4;
console.log('_this.videoOptions.mp4, trySeeTime, autoplay', _this.videoOptions.mp4, _this.videoOptions.trySeeTime, _this.videoOptions.autoplay); // 判断是否是mp4
if(mp4Url.lastIndexOf('.mp4') > 0) {
_this.bannerType = 2;
// 先设置视频URL再显示视频组件 ------------ BEGIN _this.videoOptions.mp4 += 2;
// if (res.data.attachmentType == 2) { } else {
// _this.videoOptions.mp4 = res.data.attachmentUrl; _this.bannerType = 1;
// } else { }
// _this.attachmentUrl = res.data.attachmentUrl;
// }
// _this.bannerType = res.data.attachmentType;
// if (_this.bannerType == 2) {
// _this.clientType = __isWeb ? 1 : __isAndroid ? 2 : 3;
// }
// 先设置视频URL再显示视频组件 ------------ END console.log('location', location);
console.log('_this.videoOptions.mp4, trySeeTime, autoplay', _this.videoOptions.mp4, _this.videoOptions.trySeeTime, _this.videoOptions.autoplay);
_this.project = res.data; _this.project = res.data;
if (_this.project.projectIntro) { if (_this.project.projectIntro) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册