diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-02 12:20:26 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-03 15:31:26 +0200 |
commit | 40298b02546e8225dd21bf6048fe7f224aefc32a (patch) | |
tree | 0a0b981dbeb2af47810adff6553a0df995a03734 /server/lib/jobs/handlers/index.ts | |
parent | f0adb2701c1cf404ff63095f71e542bfe6d025ae (diff) | |
download | PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.gz PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.zst PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.zip |
Implement video transcoding on server side
Diffstat (limited to 'server/lib/jobs/handlers/index.ts')
-rw-r--r-- | server/lib/jobs/handlers/index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/lib/jobs/handlers/index.ts b/server/lib/jobs/handlers/index.ts index 8abddae35..5941427a1 100644 --- a/server/lib/jobs/handlers/index.ts +++ b/server/lib/jobs/handlers/index.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import * as videoTranscoder from './video-transcoder' | 1 | import * as videoFileOptimizer from './video-file-optimizer' |
2 | import * as videoFileTranscoder from './video-file-transcoder' | ||
2 | 3 | ||
3 | export interface JobHandler<T> { | 4 | export interface JobHandler<T> { |
4 | process (data: object): T | 5 | process (data: object): T |
@@ -7,7 +8,8 @@ export interface JobHandler<T> { | |||
7 | } | 8 | } |
8 | 9 | ||
9 | const jobHandlers: { [ handlerName: string ]: JobHandler<any> } = { | 10 | const jobHandlers: { [ handlerName: string ]: JobHandler<any> } = { |
10 | videoTranscoder | 11 | videoFileOptimizer, |
12 | videoFileTranscoder | ||
11 | } | 13 | } |
12 | 14 | ||
13 | export { | 15 | export { |