Back to Peertube

Video Captions.Component

client/src/app/+videos-publish-manage/shared-manage/captions/video-captions.component.html

8.1.5960 B
Original Source

Captions

@if (isLive()) { Captions are not available on a live.} @else { @if (displayTranscriptionInfo && isTranscriptionEnabled() && !hasCaptions()) { Subtitles will be automatically generated from your video. } @for (videoCaption of videoEdit.getCaptionsEdit(); track videoCaption) {

@if (videoCaption.action) { {{ getCaptionLabel(videoCaption) }} @switch (videoCaption.action) { @case ('CREATE') { Will be created on update } @case ('UPDATE') { Will be edited on update } @case ('REMOVE') { Will be deleted on update } } @if (videoCaption.action === 'CREATE' || videoCaption.action === 'UPDATE') { } @switch (videoCaption.action) { @case ('CREATE') { Cancel creation } @case ('UPDATE') { Cancel editing } @case ('REMOVE') { Cancel deletion } } } @else { {{ getCaptionLabel(videoCaption) }} Uploaded on {{ videoCaption.updatedAt | ptDate }} ✔ }

} @if (videoEdit.getCaptionsEdit()?.length === 0) { No captions for now. } Add a caption }