Skip to content

Commit eb17ef9

Browse files
hamza221skjnldsv
authored andcommitted
fix 404 on blank.mp4
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
1 parent a5701ec commit eb17ef9

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

img/blank.mp4

1.74 KB
Binary file not shown.

js/viewer-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)