Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-23 15:07:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
572ce82445eb05179afb43c7a663b68f36f1894e
572ce824
1 parent
45ed69ac
✨ feat(视频封面): 后端有值取值,没有默认值前端提供默认图片
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
src/components/AuditVideoCard/index.vue
src/components/BVideoCard/index.vue
src/components/VideoCard/index.vue
src/components/VideoDetail/index.vue
src/components/AuditVideoCard/index.vue
View file @
572ce82
...
...
@@ -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' },
...
...
src/components/BVideoCard/index.vue
View file @
572ce82
...
...
@@ -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' },
...
...
src/components/VideoCard/index.vue
View file @
572ce82
...
...
@@ -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' },
...
...
src/components/VideoDetail/index.vue
View file @
572ce82
...
...
@@ -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'},
...
...
Please
register
or
login
to post a comment