1 <div *
ngIf=
"!isInUpdateForm" class=
"upload-video-container">
2 <div class=
"first-step-block">
3 <my-global-icon class=
"upload-icon" iconName=
"upload" aria-hidden=
"true"></my-global-icon>
5 <div class=
"form-group">
6 <label i18n
for=
"first-step-channel">Channel
</label>
8 labelForId=
"first-step-channel" [items]=
"userVideoChannels" [(ngModel)]=
"firstStepChannelId"
12 <div class=
"form-group">
13 <label i18n
for=
"first-step-privacy">Privacy
</label>
15 labelForId=
"first-step-privacy" [items]=
"videoPrivacies" [(ngModel)]=
"firstStepPrivacyId"
20 type=
"button" i18n-value
value=
"Go Live" (click)=
"goLive()"
25 <div *
ngIf=
"error" class=
"alert alert-danger">
26 <div i18n
>Sorry, but something went wrong
</div>
30 <div class=
"alert alert-info" i18n *
ngIf=
"isInUpdateForm && getMaxLiveDuration() >= 0">
31 Max live duration is {{ getMaxLiveDuration() | myDurationFormatter }}.
32 If your live reaches this limit, it will be automatically terminated.
35 <!-- Hidden because we want to load the component -->
36 <form [hidden]=
"!isInUpdateForm" novalidate [formGroup]=
"form">
38 [form]=
"form" [formErrors]=
"formErrors" [videoCaptions]=
"videoCaptions"
39 [schedulePublicationPossible]=
"false" [waitTranscodingEnabled]=
"isWaitTranscodingEnabled()"
40 [validationMessages]=
"validationMessages" [userVideoChannels]=
"userVideoChannels" [liveVideo]=
"liveVideo"
44 <div class=
"submit-container">
45 <my-button className=
"orange-button" i18n-label
label=
"Update" icon=
"circle-tick"
46 (click)=
"updateSecondStep()"
47 [disabled]=
"!form.valid"