hookehuyr

✨ feat(视频封面): 后端有值取值,没有默认值前端提供默认图片

......@@ -99,8 +99,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
// poster: this.item.cover,
poster: DEFAULT_COVER,
poster: this.item.cover ? this.item.cover : DEFAULT_COVER,
// poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
......
......@@ -212,8 +212,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
// poster: this.item.cover,
poster: DEFAULT_COVER,
poster: this.item.cover ? this.item.cover : DEFAULT_COVER,
// poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
......
......@@ -91,8 +91,8 @@ onMounted(() => {
container: '#mui-player-' + props.item.id,
title: props.item.title,
src: props.item.video,
// poster: props.item.cover,
poster: DEFAULT_COVER,
poster: props.item.cover ? props.item.cover : DEFAULT_COVER,
// poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
......
......@@ -71,8 +71,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
// poster: this.item.cover,
poster: DEFAULT_COVER,
poster: this.item.cover ? this.item.cover : DEFAULT_COVER,
// poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{attrKey:'webkit-playsinline',attrValue:'webkit-playsinline'},
......