2 <my-global-icon iconName=
"videos" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Videos
</ng-container>
7 [value]=
"videos" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
8 [sortField]=
"sort.field" [sortOrder]=
"sort.order" dataKey=
"id" [resizableColumns]=
"true" [(selection)]=
"selectedVideos"
9 [lazy]=
"true" (onLazyLoad)=
"loadLazy($event)" [lazyLoadOnInit]=
"false"
10 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
11 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} videos"
12 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
13 [ngClass]=
"{ loading: loading }"
15 <ng-template pTemplate=
"caption">
17 <div class=
"left-buttons">
19 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
20 [actions]=
"bulkVideoActions" [entry]=
"selectedVideos"
26 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
32 <ng-template pTemplate=
"header">
34 <th style=
"width: 40px">
35 <p-tableHeaderCheckbox ariaLabel=
"Select all rows" i18n-ariaLabel
></p-tableHeaderCheckbox>
37 <th style=
"width: 40px"></th>
38 <th style=
"width: 60px;"></th>
42 <th style=
"width: 150px;" i18n
pSortableColumn=
"publishedAt">Published
<p-sortIcon field=
"publishedAt"></p-sortIcon></th>
46 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-video
>
48 <tr [pSelectableRow]=
"video">
49 <td class=
"checkbox-cell">
50 <p-tableCheckbox [value]=
"video" ariaLabel=
"Select this row" i18n-ariaLabel
></p-tableCheckbox>
53 <td class=
"expand-cell" [pRowToggler]=
"video">
54 <my-table-expander-icon [expanded]=
"expanded"></my-table-expander-icon>
57 <td class=
"action-cell">
58 <my-video-actions-dropdown
59 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video"
60 [displayOptions]=
"videoActionsOptions" (videoRemoved)=
"onVideoRemoved()"
61 ></my-video-actions-dropdown>
65 <my-video-cell [video]=
"video"></my-video-cell>
69 <span [ngClass]=
"getPrivacyBadgeClass(video.privacy.id)" class=
"badge">{{ video.privacy.label }}
</span>
71 <span *
ngIf=
"video.nsfw" class=
"badge badge-red" i18n
>NSFW
</span>
73 <span *
ngIf=
"isUnpublished(video.state.id)" class=
"badge badge-yellow" i18n
>{{ video.state.label }}
</span>
75 <span *
ngIf=
"isAccountBlocked(video)" class=
"badge badge-red" i18n
>Account muted
</span>
76 <span *
ngIf=
"isServerBlocked(video)" class=
"badge badge-red" i18n
>Server muted
</span>
78 <span *
ngIf=
"isVideoBlocked(video)" class=
"badge badge-red" i18n
>Blocked
</span>
82 <span *
ngIf=
"isHLS(video)" class=
"badge badge-blue">HLS
</span>
83 <span *
ngIf=
"isWebTorrent(video)" class=
"badge badge-blue">WebTorrent
</span>
84 <span *
ngIf=
"video.isLive" class=
"badge badge-blue">Live
</span>
86 <span *
ngIf=
"!video.isLive && video.isLocal">{{ getFilesSize(video) | bytes:
1 }}
</span>
90 {{ video.publishedAt | date: 'short' }}
96 <ng-template pTemplate=
"rowexpansion" let-video
>
98 <td class=
"video-info expand-cell" colspan=
"7">
100 <div *
ngIf=
"isWebTorrent(video)">
104 <li *
ngFor=
"let file of video.files">
105 {{ file.resolution.label }}: {{ file.size | bytes:
1 }}
110 <div *
ngIf=
"isHLS(video)">
114 <li *
ngFor=
"let file of video.streamingPlaylists[0].files">
115 {{ file.resolution.label }}: {{ file.size | bytes:
1 }}
120 <my-embed class=
"ml-auto" [video]=
"video"></my-embed>