Compare commits

...

2 commits

Author SHA1 Message Date
Joel Kåberg
37eaf5be06
Merge 0400476f0b into 5a1f75265d 2024-08-30 14:32:12 +02:00
Joel Kåberg
0400476f0b
add mkv as an allowed video type 2024-04-03 13:48:22 +02:00

2
ui/script.js vendored
View file

@ -582,7 +582,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()