add mkv as an allowed video type

This commit is contained in:
Joel Kåberg 2024-04-03 13:48:22 +02:00 committed by GitHub
parent 33c93fc0b4
commit 0400476f0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
ui/script.js vendored
View file

@ -579,7 +579,7 @@ picsHolder.addEventListener('touchend', e => {
}, false)
// Video player
const videosTypes = ['.mp4', '.webm', '.ogv', '.ogg', '.mp3', '.flac', '.wav']
const videosTypes = ['.mkv', '.mp4', '.webm', '.ogv', '.ogg', '.mp3', '.flac', '.wav']
const isVideo = src => src && videosTypes.find(type => src.toLocaleLowerCase().includes(type))
const isVideoMode = () => video.style.display === 'flex'
const videoFs = () => video.requestFullscreen()