1441 |
ariadna |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
namespace tiny_recordrtc;
|
|
|
18 |
|
|
|
19 |
/**
|
|
|
20 |
* Constants for Tiny RecordRTC plugin.
|
|
|
21 |
*
|
|
|
22 |
* @package tiny_recordrtc
|
|
|
23 |
* @copyright 2024 Huong Nguyen <huongnv13@gmail.com>
|
|
|
24 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
25 |
*/
|
|
|
26 |
class constants {
|
|
|
27 |
|
|
|
28 |
/** @var string TINYRECORDRTC_AUDIO_TYPE The audio recording type. */
|
|
|
29 |
public const TINYRECORDRTC_AUDIO_TYPE = 'audio';
|
|
|
30 |
|
|
|
31 |
/** @var string TINYRECORDRTC_VIDEO_TYPE The video recording type. */
|
|
|
32 |
public const TINYRECORDRTC_VIDEO_TYPE = 'video';
|
|
|
33 |
|
|
|
34 |
/** @var string TINYRECORDRTC_SCREEN_TYPE The screen-sharing recording type. */
|
|
|
35 |
public const TINYRECORDRTC_SCREEN_TYPE = 'screen';
|
|
|
36 |
|
|
|
37 |
/** @var string TINYRECORDRTC_SCREEN_HD The HD screen-sharing resolution. */
|
|
|
38 |
public const TINYRECORDRTC_SCREEN_HD = '1280,720';
|
|
|
39 |
|
|
|
40 |
/** @var string TINYRECORDRTC_SCREEN_FHD The Full-HD screen-sharing resolution. */
|
|
|
41 |
public const TINYRECORDRTC_SCREEN_FHD = '1920,1080';
|
|
|
42 |
|
|
|
43 |
/** @var array TINYRECORDRTC_AUDIO_BITRATES The audio bitrate options. */
|
|
|
44 |
public const TINYRECORDRTC_AUDIO_BITRATES = [24000, 32000, 48000, 64000, 96000, 128000, 160000, 192000, 256000, 320000];
|
|
|
45 |
}
|