-
Notifications
You must be signed in to change notification settings - Fork 45
/
Constants.php
19 lines (18 loc) · 963 Bytes
/
Constants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/*
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/
declare(strict_types=1);
namespace OCA\Recognize;
class Constants {
public const IMAGE_FORMATS = ['image/jpeg', 'image/png', 'image/bmp', 'image/heic', 'image/heif', 'image/tiff', 'image/webp'];
public const AUDIO_FORMATS = ['audio/mpeg', 'audio/mp4', 'audio/ogg', 'audio/vnd.wav', 'audio/flac'];
public const VIDEO_FORMATS = ['image/gif', 'video/mp4', 'video/MP2T', 'video/x-msvideo', 'video/x-ms-wmv', 'video/quicktime', 'video/ogg', 'video/mpeg', 'video/webm', 'video/x-matroska'];
public const DIRECTORY_FORMATS = ['httpd/unix-directory'];
public const IGNORE_MARKERS_ALL = ['.nomedia'];
public const IGNORE_MARKERS_IMAGE = ['.noimage'];
public const IGNORE_MARKERS_VIDEO = ['.novideo'];
public const IGNORE_MARKERS_AUDIO = ['.nomusic'];
public const MAX_FILE_SIZE = 10000000;
}