]>
Commit | Line | Data |
---|---|---|
d846d99c C |
1 | <ng-template #modal let-close="close" let-dismiss="dismiss"> |
2 | <div class="modal-header"> | |
3 | <h4 i18n class="modal-title">Live information</h4> | |
4 | ||
5 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="dismiss()"></my-global-icon> | |
6 | </div> | |
7 | ||
312644ce C |
8 | <div class="modal-body" *ngIf="live"> |
9 | <div> | |
4c8749cb C |
10 | <div class="pt-badge badge-blue" *ngIf="live.permanentLive" i18n>Permanent/Recurring live</div> |
11 | <div class="pt-badge badge-blue" *ngIf="live.saveReplay" i18n>Replay will be saved</div> | |
312644ce C |
12 | </div> |
13 | ||
b13a0a48 | 14 | <div class="alert pt-alert-primary"> |
cd5dc718 C |
15 | <my-live-documentation-link></my-live-documentation-link> |
16 | </div> | |
17 | ||
df1db951 | 18 | <div *ngIf="live.rtmpUrl" class="form-group"> |
d846d99c | 19 | <label for="liveVideoRTMPUrl" i18n>Live RTMP Url</label> |
a70bf3bd | 20 | <my-input-text inputId="liveVideoRTMPUrl" [value]="live.rtmpUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text> |
d846d99c C |
21 | </div> |
22 | ||
df1db951 C |
23 | <div *ngIf="live.rtmpsUrl" class="form-group"> |
24 | <label for="liveVideoRTMPSUrl" i18n>Live RTMPS Url</label> | |
a70bf3bd | 25 | <my-input-text inputId="liveVideoRTMPSUrl" [value]="live.rtmpsUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-text> |
df1db951 C |
26 | </div> |
27 | ||
d846d99c C |
28 | <div class="form-group"> |
29 | <label for="liveVideoStreamKey" i18n>Live stream key</label> | |
a70bf3bd | 30 | <my-input-text inputId="liveVideoStreamKey" [value]="live.streamKey" [withCopy]="true" [readonly]="true"></my-input-text> |
c29039e7 C |
31 | |
32 | <div class="form-group-description" i18n>⚠️ Never share your stream key with anyone.</div> | |
d846d99c | 33 | </div> |
39e68a32 C |
34 | |
35 | <div class="journal"> | |
36 | <label i18n>Latest live sessions</label> | |
37 | ||
38 | <div class="journal-session" *ngFor="let session of latestLiveSessions"> | |
4c8749cb C |
39 | <span i18n class="pt-badge badge-success" *ngIf="!getErrorLabel(session)">Success</span> |
40 | <span class="pt-badge badge-danger" *ngIf="getErrorLabel(session)">{{ getErrorLabel(session) }}</span> | |
39e68a32 C |
41 | |
42 | <span i18n>Started on {{ session.startDate | date:'medium' }}</span> | |
43 | <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span> | |
44 | <a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a> | |
45 | </div> | |
46 | </div> | |
d846d99c C |
47 | </div> |
48 | ||
49 | <div class="modal-footer"> | |
50 | <div class="form-group inputs"> | |
266947e5 | 51 | <input type="button" role="button" i18n-value value="Close" class="peertube-button grey-button" (click)="dismiss()" /> |
d846d99c C |
52 | |
53 | <my-edit-button | |
54 | i18n-label label="Update live settings" | |
55 | [routerLink]="[ '/videos', 'update', video.uuid ]" (click)="dismiss()" | |
56 | ></my-edit-button> | |
57 | </div> | |
58 | </div> | |
59 | </ng-template> |