-
Notifications
You must be signed in to change notification settings - Fork 10
/
CodecConfiguration.ts
105 lines (100 loc) · 4.06 KB
/
CodecConfiguration.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import AacAudioConfiguration from './AacAudioConfiguration';
import Ac3AudioConfiguration from './Ac3AudioConfiguration';
import Av1VideoConfiguration from './Av1VideoConfiguration';
import BitmovinResource from './BitmovinResource';
import CodecConfigType from './CodecConfigType';
import DolbyAtmosAudioConfiguration from './DolbyAtmosAudioConfiguration';
import DolbyDigitalAudioConfiguration from './DolbyDigitalAudioConfiguration';
import DolbyDigitalPlusAudioConfiguration from './DolbyDigitalPlusAudioConfiguration';
import DtsAudioConfiguration from './DtsAudioConfiguration';
import DtsPassthroughAudioConfiguration from './DtsPassthroughAudioConfiguration';
import DtsXAudioConfiguration from './DtsXAudioConfiguration';
import DvbSubtitleConfiguration from './DvbSubtitleConfiguration';
import Eac3AudioConfiguration from './Eac3AudioConfiguration';
import H262VideoConfiguration from './H262VideoConfiguration';
import H264VideoConfiguration from './H264VideoConfiguration';
import H265VideoConfiguration from './H265VideoConfiguration';
import HeAacV1AudioConfiguration from './HeAacV1AudioConfiguration';
import HeAacV2AudioConfiguration from './HeAacV2AudioConfiguration';
import ImscConfiguration from './ImscConfiguration';
import MjpegVideoConfiguration from './MjpegVideoConfiguration';
import Mp2AudioConfiguration from './Mp2AudioConfiguration';
import Mp3AudioConfiguration from './Mp3AudioConfiguration';
import OpusAudioConfiguration from './OpusAudioConfiguration';
import PassthroughAudioConfiguration from './PassthroughAudioConfiguration';
import PcmAudioConfiguration from './PcmAudioConfiguration';
import VorbisAudioConfiguration from './VorbisAudioConfiguration';
import Vp8VideoConfiguration from './Vp8VideoConfiguration';
import Vp9VideoConfiguration from './Vp9VideoConfiguration';
import WebVttConfiguration from './WebVttConfiguration';
export type CodecConfigurationUnion =
AacAudioConfiguration |
PassthroughAudioConfiguration |
DtsPassthroughAudioConfiguration |
DtsAudioConfiguration |
DtsXAudioConfiguration |
DvbSubtitleConfiguration |
HeAacV1AudioConfiguration |
HeAacV2AudioConfiguration |
H264VideoConfiguration |
H265VideoConfiguration |
Vp9VideoConfiguration |
Vp8VideoConfiguration |
Mp2AudioConfiguration |
Mp3AudioConfiguration |
Ac3AudioConfiguration |
DolbyDigitalAudioConfiguration |
Eac3AudioConfiguration |
DolbyDigitalPlusAudioConfiguration |
OpusAudioConfiguration |
VorbisAudioConfiguration |
MjpegVideoConfiguration |
Av1VideoConfiguration |
DolbyAtmosAudioConfiguration |
H262VideoConfiguration |
PcmAudioConfiguration |
WebVttConfiguration |
ImscConfiguration;
/**
* @export
* @class CodecConfiguration
*/
export class CodecConfiguration extends BitmovinResource {
protected static readonly _discriminatorName = 'type';
protected static readonly _discriminatorMapping: { [key in keyof typeof CodecConfigType]: string; } = {
AAC: 'AacAudioConfiguration',
AUDIO_PASSTHROUGH: 'PassthroughAudioConfiguration',
DTS_PASSTHROUGH: 'DtsPassthroughAudioConfiguration',
DTS: 'DtsAudioConfiguration',
DTSX: 'DtsXAudioConfiguration',
DVB_SUBTITLE: 'DvbSubtitleConfiguration',
HE_AAC_V1: 'HeAacV1AudioConfiguration',
HE_AAC_V2: 'HeAacV2AudioConfiguration',
H264: 'H264VideoConfiguration',
H265: 'H265VideoConfiguration',
VP9: 'Vp9VideoConfiguration',
VP8: 'Vp8VideoConfiguration',
MP2: 'Mp2AudioConfiguration',
MP3: 'Mp3AudioConfiguration',
AC3: 'Ac3AudioConfiguration',
DD: 'DolbyDigitalAudioConfiguration',
EAC3: 'Eac3AudioConfiguration',
DDPLUS: 'DolbyDigitalPlusAudioConfiguration',
OPUS: 'OpusAudioConfiguration',
VORBIS: 'VorbisAudioConfiguration',
MJPEG: 'MjpegVideoConfiguration',
AV1: 'Av1VideoConfiguration',
DOLBY_ATMOS: 'DolbyAtmosAudioConfiguration',
H262: 'H262VideoConfiguration',
PCM: 'PcmAudioConfiguration',
WEBVTT: 'WebVttConfiguration',
IMSC: 'ImscConfiguration'
};
constructor(obj?: Partial<CodecConfiguration>) {
super(obj);
if(!obj) {
return;
}
}
}
export default CodecConfiguration;