Skip to content

Commit 83303fc

Browse files
fix 404 on blank.mp4
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
1 parent e0a7ac3 commit 83303fc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

img/blank.mp4

1.74 KB
Binary file not shown.

src/components/Videos.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ import Vue from 'vue'
5757
import VuePlyr from '@skjnldsv/vue-plyr'
5858
import '@skjnldsv/vue-plyr/dist/vue-plyr.css'
5959
import logger from '../services/logger.js'
60+
import { imagePath } from '@nextcloud/router'
6061
6162
const liveExt = ['jpg', 'jpeg', 'png']
6263
const liveExtRegex = new RegExp(`\\.(${liveExt.join('|')})$`, 'i')
64+
const blankVideo = imagePath('viewer', 'blank.mp4')
6365
6466
Vue.use(VuePlyr)
6567
@@ -85,7 +87,7 @@ export default {
8587
return {
8688
autoplay: this.active === true,
8789
// Used to reset the video streams https://github.com/sampotts/plyr#javascript-1
88-
blankVideo: 'blank.mp4',
90+
blankVideo,
8991
controls: ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'fullscreen'],
9092
loadSprite: false,
9193
}

0 commit comments

Comments
 (0)