Added .m4v and .m2ts video extensions

Their thumbs can be made with ffmpeg
Run "yarn thumbs 2" to create thumbs for existing uploads with those
extensions

Rebuilt client assets and bumped v1 version string
This commit is contained in:
Bobby Wibowo 2020-04-19 21:41:17 +07:00
parent 3e3878b93c
commit a6156da798
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
8 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ const self = {
idMaxTries: config.uploads.maxTries || 1,
imageExts: ['.webp', '.jpg', '.jpeg', '.gif', '.png', '.tiff', '.tif', '.svg'],
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv'],
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv', '.m4v', '.m2ts'],
ffprobe: promisify(ffmpeg.ffprobe),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/home.js vendored

File diff suppressed because one or more lines are too long

2
dist/js/home.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -81,8 +81,8 @@ const page = {
lazyLoad: null,
imageExts: ['.webp', '.jpg', '.jpeg', '.gif', '.png', '.tiff', '.tif', '.svg'],
// some of these extensions can not be played directly in browsers
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv'],
// TODO: Disable "Load original" button with non-streamable extensions
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv', '.m4v', '.m2ts'],
isTriggerLoading: null,
fadingIn: null,

View File

@ -53,7 +53,7 @@ const page = {
// Include BMP for uploads preview only, cause the real images will be used
// Sharp isn't capable of making their thumbnails for dashboard and album public pages
imageExts: ['.webp', '.jpg', '.jpeg', '.bmp', '.gif', '.png', '.tiff', '.tif', '.svg'],
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv'],
videoExts: ['.webm', '.mp4', '.wmv', '.avi', '.mov', '.mkv', '.m4v', '.m2ts'],
albumTitleMaxLength: 70,
albumDescMaxLength: 4000

View File

@ -1,5 +1,5 @@
{
"1": "1587239207",
"1": "1587307215",
"2": "1581416390",
"3": "1581416390",
"4": "1581416390",