diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-17 09:20:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch) | |
tree | 79304b0152b0a38d33b26e65d4acdad0da4032a7 /client/src/app/core | |
parent | 110d463fece85e87a26aca48a6048ae0017a27b3 (diff) | |
download | PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip |
Live streaming implementation first step
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 3 | ||||
-rw-r--r-- | client/src/app/core/server/server.service.ts | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 4e44a1865..b755fda2c 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -2,6 +2,7 @@ import { Observable, of, ReplaySubject } from 'rxjs' | |||
2 | import { catchError, first, map, shareReplay } from 'rxjs/operators' | 2 | import { catchError, first, map, shareReplay } from 'rxjs/operators' |
3 | import { HttpClient } from '@angular/common/http' | 3 | import { HttpClient } from '@angular/common/http' |
4 | import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core' | 4 | import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core' |
5 | import { VideoEditType } from '@app/+videos/+video-edit/shared/video-edit.type' | ||
5 | import { AuthService } from '@app/core/auth' | 6 | import { AuthService } from '@app/core/auth' |
6 | import { Notifier } from '@app/core/notification' | 7 | import { Notifier } from '@app/core/notification' |
7 | import { MarkdownService } from '@app/core/renderer' | 8 | import { MarkdownService } from '@app/core/renderer' |
@@ -192,7 +193,7 @@ export class PluginService implements ClientHook { | |||
192 | : PluginType.THEME | 193 | : PluginType.THEME |
193 | } | 194 | } |
194 | 195 | ||
195 | getRegisteredVideoFormFields (type: 'import-url' | 'import-torrent' | 'upload' | 'update') { | 196 | getRegisteredVideoFormFields (type: VideoEditType) { |
196 | return this.formFields.video.filter(f => f.videoFormOptions.type === type) | 197 | return this.formFields.video.filter(f => f.videoFormOptions.type === type) |
197 | } | 198 | } |
198 | 199 | ||
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 5bcf33c1b..bc76bacfc 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -74,6 +74,13 @@ export class ServerService { | |||
74 | enabled: true | 74 | enabled: true |
75 | } | 75 | } |
76 | }, | 76 | }, |
77 | live: { | ||
78 | enabled: false, | ||
79 | transcoding: { | ||
80 | enabled: false, | ||
81 | enabledResolutions: [] | ||
82 | } | ||
83 | }, | ||
77 | avatar: { | 84 | avatar: { |
78 | file: { | 85 | file: { |
79 | size: { max: 0 }, | 86 | size: { max: 0 }, |