1 <div class=
"video-edit" [formGroup]=
"form">
2 <div ngbNav #
nav=
"ngbNav" class=
"nav-tabs">
4 <ng-container ngbNavItem
>
5 <a ngbNavLink i18n
>Basic info
</a>
7 <ng-template ngbNavContent
>
8 <div class=
"form-columns">
9 <div class=
"col-video-edit">
10 <div class=
"form-group">
11 <label i18n
for=
"name">Title
</label>
12 <input type=
"text" id=
"name" class=
"form-control" formControlName=
"name" />
13 <div *
ngIf=
"formErrors.name" class=
"form-error">
18 <div class=
"form-group">
19 <label i18n
class=
"label-tags">Tags
</label>
22 <ng-template ptTemplate=
"customHtml">
24 Tags could be used to suggest relevant recommendations.
<br />
25 There is a maximum of
5 tags.
<br />
26 Press
<kbd>Enter
</kbd> to add a new tag.
31 <my-select-tags labelForId=
"label-tags" formControlName=
"tags"></my-select-tags>
32 <div *
ngIf=
"formErrors.tags" class=
"form-error">
37 <div class=
"form-group">
38 <label i18n
for=
"description">Description
</label>
40 <my-help helpType=
"markdownText">
41 <ng-template ptTemplate=
"preHtml">
43 Video descriptions are truncated by default and require manual action to expand them.
48 <my-markdown-textarea [truncate]=
"250" formControlName=
"description" [markdownVideo]=
"videoToUpdate"></my-markdown-textarea>
50 <div *
ngIf=
"formErrors.description" class=
"form-error">
51 {{ formErrors.description }}
56 <div class=
"col-video-edit">
57 <div class=
"form-group">
58 <label i18n
for=
"channel">Channel
</label>
59 <my-select-channel labelForId=
"channel" [items]=
"userVideoChannels" formControlName=
"channelId"></my-select-channel>
62 <div class=
"form-group">
63 <label i18n
for=
"category">Category
</label>
65 labelForId=
"category" [items]=
"videoCategories" formControlName=
"category" [clearable]=
"true"
68 <div *
ngIf=
"formErrors.category" class=
"form-error">
69 {{ formErrors.category }}
73 <div class=
"form-group">
74 <label i18n
for=
"licence">Licence
</label>
77 <ng-template ptTemplate=
"customHtml">
79 <a href=
"https://chooser-beta.creativecommons.org/" target=
"_blank" rel=
"noopener noreferrer">Choose
</a> the appropriate licence for your work.
85 labelForId=
"licence" [items]=
"videoLicences" formControlName=
"licence" [clearable]=
"true"
88 <div *
ngIf=
"formErrors.licence" class=
"form-error">
89 {{ formErrors.licence }}
93 <div class=
"form-group">
94 <label i18n
for=
"language">Language
</label>
96 labelForId=
"language" [items]=
"videoLanguages" formControlName=
"language"
97 [clearable]=
"true" [searchable]=
"true" [groupBy]=
"'group'"
100 <div *
ngIf=
"formErrors.language" class=
"form-error">
101 {{ formErrors.language }}
105 <div class=
"form-group">
106 <label i18n
for=
"privacy">Privacy
</label>
108 labelForId=
"privacy" [items]=
"videoPrivacies" formControlName=
"privacy" [clearable]=
"false"
109 ></my-select-options>
111 <div *
ngIf=
"formErrors.privacy" class=
"form-error">
112 {{ formErrors.privacy }}
116 <div *
ngIf=
"schedulePublicationEnabled" class=
"form-group">
117 <label i18n
for=
"schedulePublicationAt">Schedule publication ({{ calendarTimezone }})
</label>
119 id=
"schedulePublicationAt" formControlName=
"schedulePublicationAt" [dateFormat]=
"calendarDateFormat"
120 [firstDayOfWeek]=
"0" [minDate]=
"minScheduledDate" [showTime]=
"true" [hideOnDateTimeSelect]=
"true"
124 <div *
ngIf=
"formErrors.schedulePublicationAt" class=
"form-error">
125 {{ formErrors.schedulePublicationAt }}
129 <my-peertube-checkbox inputName=
"nsfw" formControlName=
"nsfw" helpPlacement=
"bottom-right">
130 <ng-template ptTemplate=
"label">
131 <ng-container i18n
>Contains sensitive content
</ng-container>
134 <ng-template ptTemplate=
"help">
135 <ng-container i18n
>Some instances hide videos containing mature or explicit content by default.
</ng-container>
137 </my-peertube-checkbox>
139 <my-peertube-checkbox *
ngIf=
"waitTranscodingEnabled" inputName=
"waitTranscoding" formControlName=
"waitTranscoding" helpPlacement=
"bottom-right">
140 <ng-template ptTemplate=
"label">
141 <ng-container i18n
>Publish after transcoding
</ng-container>
144 <ng-template ptTemplate=
"help">
145 <ng-container i18n
>If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends.
</ng-container>
147 </my-peertube-checkbox>
154 <ng-container ngbNavItem *
ngIf=
"!liveVideo">
155 <a ngbNavLink i18n
>Captions
</a>
157 <ng-template ngbNavContent
>
158 <div class=
"captions">
160 <div class=
"captions-header">
161 <a (click)=
"openAddCaptionModal()" class=
"create-caption">
162 <my-global-icon iconName=
"add" aria-hidden=
"true"></my-global-icon>
163 <ng-container i18n
>Add another caption
</ng-container>
167 <div class=
"form-group" *
ngFor=
"let videoCaption of videoCaptions">
169 <div class=
"caption-entry">
170 <ng-container *
ngIf=
"!videoCaption.action">
172 i18n-title
title=
"See the subtitle file" class=
"caption-entry-label" target=
"_blank" rel=
"noopener noreferrer"
173 [href]=
"videoCaption.captionPath"
174 >{{ videoCaption.language.label }}
</a>
176 <div i18n
class=
"caption-entry-state">Already uploaded
✔</div>
178 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Delete
</span>
181 <ng-container *
ngIf=
"videoCaption.action === 'CREATE'">
182 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
184 <div i18n
class=
"caption-entry-state caption-entry-state-create">Will be created on update
</div>
186 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel create
</span>
189 <ng-container *
ngIf=
"videoCaption.action === 'REMOVE'">
190 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
192 <div i18n
class=
"caption-entry-state caption-entry-state-delete">Will be deleted on update
</div>
194 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel deletion
</span>
199 <div i18n
class=
"no-caption" *
ngIf=
"videoCaptions?.length === 0">
207 <ng-container ngbNavItem *
ngIf=
"liveVideo">
208 <a ngbNavLink i18n
>Live settings
</a>
210 <ng-template ngbNavContent
>
211 <div class=
"row live-settings">
212 <div class=
"col-md-12">
213 <div class=
"alert alert-info">
214 <my-live-documentation-link></my-live-documentation-link>
217 <div class=
"form-group">
218 <label for=
"liveVideoRTMPUrl" i18n
>Live RTMP Url
</label>
219 <my-input-toggle-hidden inputId=
"liveVideoRTMPUrl" [value]=
"liveVideo.rtmpUrl" [withToggle]=
"false" [withCopy]=
"true" [show]=
"true" [readonly]=
"true"></my-input-toggle-hidden>
222 <div class=
"form-group">
223 <label for=
"liveVideoStreamKey" i18n
>Live stream key
</label>
224 <my-input-toggle-hidden inputId=
"liveVideoStreamKey" [value]=
"liveVideo.streamKey" [withCopy]=
"true" [readonly]=
"true"></my-input-toggle-hidden>
226 <div class=
"form-group-description" i18n
>⚠️ Never share your stream key with anyone.
</div>
229 <div class=
"form-group">
230 <div class=
"peertube-radio-container">
231 <input type=
"radio" formControlName=
"permanentLive" id=
"permanentLiveFalse" [value]=
"false">
232 <label i18n
for=
"permanentLiveFalse" class=
"radio">This is a normal live
</label>
234 <span class=
"form-group-description" i18n
>
235 You can't stream multiple times in a normal live, but you can save a replay of it that will use the same URL
239 <div class=
"peertube-radio-container">
240 <input type=
"radio" formControlName=
"permanentLive" id=
"permanentLiveTrue" [value]=
"true">
241 <label i18n
for=
"permanentLiveTrue" class=
"radio">This is a permanent/recurring live
</label>
243 <span class=
"form-group-description" i18n
>
244 You can stream multiple times in a permanent/recurring live. The URL for your viewers won't change but you cannot save replays of your lives
249 <div class=
"form-group" *
ngIf=
"isSaveReplayEnabled()">
250 <my-peertube-checkbox inputName=
"liveVideoSaveReplay" formControlName=
"saveReplay">
251 <ng-template ptTemplate=
"label">
252 <ng-container i18n
>Automatically publish a replay when your live ends
</ng-container>
255 <ng-container ngProjectAs=
"description">
256 <span i18n
>⚠️ If you enable this option, your live will be terminated if you exceed your video quota
</span>
258 </my-peertube-checkbox>
267 <ng-container ngbNavItem
>
268 <a ngbNavLink i18n
>Advanced settings
</a>
270 <ng-template ngbNavContent
>
271 <div class=
"row advanced-settings">
272 <div class=
"col-md-12 col-xl-8">
274 <div class=
"form-group">
275 <label i18n
for=
"previewfile">Video preview
</label>
278 i18n-inputLabel
inputLabel=
"Edit" inputName=
"previewfile" formControlName=
"previewfile"
279 previewWidth=
"360px" previewHeight=
"200px"
280 ></my-preview-upload>
283 <div class=
"form-group">
284 <label i18n
for=
"support">Support
</label>
285 <my-help helpType=
"markdownEnhanced">
286 <ng-template ptTemplate=
"preHtml">
288 Short text to tell people how they can support you (membership platform...).
292 <my-markdown-textarea
293 id=
"support" formControlName=
"support" markdownType=
"enhanced"
294 [classes]=
"{ 'input-error': formErrors['support'] }"
295 ></my-markdown-textarea>
296 <div *
ngIf=
"formErrors.support" class=
"form-error">
297 {{ formErrors.support }}
302 <div class=
"col-md-12 col-xl-4">
303 <div class=
"form-group originally-published-at">
304 <label i18n
for=
"originallyPublishedAt">Original publication date
</label>
306 <ng-template ptTemplate=
"preHtml">
308 This is the date when the content was originally published (e.g. the release date for a film)
313 id=
"originallyPublishedAt" formControlName=
"originallyPublishedAt" [dateFormat]=
"calendarDateFormat" [firstDayOfWeek]=
"0"
314 [showTime]=
"true" [hideOnDateTimeSelect]=
"true" [monthNavigator]=
"true" [yearNavigator]=
"true" [yearRange]=
"myYearRange"
318 <div *
ngIf=
"formErrors.originallyPublishedAt" class=
"form-error">
319 {{ formErrors.originallyPublishedAt }}
323 <my-peertube-checkbox
324 inputName=
"commentsEnabled" formControlName=
"commentsEnabled"
325 i18n-labelText
labelText=
"Enable video comments"
326 ></my-peertube-checkbox>
328 <my-peertube-checkbox
329 inputName=
"downloadEnabled" formControlName=
"downloadEnabled"
330 i18n-labelText
labelText=
"Enable download"
331 ></my-peertube-checkbox>
337 <ng-container ngbNavItem *
ngIf=
"pluginFields.length !== 0">
338 <a ngbNavLink i18n
>Plugin settings
</a>
340 <ng-template ngbNavContent
>
341 <div class=
"row plugin-settings">
343 <div class=
"col-md-12 col-xl-8">
344 <div *
ngFor=
"let pluginSetting of pluginFields" class=
"form-group" [hidden]=
"isPluginFieldHidden(pluginSetting)">
345 <my-dynamic-form-field [form]=
"pluginDataFormGroup" [formErrors]=
"formErrors" [setting]=
"pluginSetting.commonOptions"></my-dynamic-form-field>
354 <div [ngbNavOutlet]=
"nav"></div>
357 <my-video-caption-add-modal
358 #videoCaptionAddModal [existingCaptions]=
"getExistingCaptions()" [serverConfig]=
"serverConfig" (captionAdded)=
"onCaptionAdded($event)"
359 ></my-video-caption-add-modal>