Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add warning below live stream key field

Chocobozzzc29039e7c070
diff --git a/client/src/app/+my-account/my-account-videos/modals/live-stream-information.component.html b/client/src/app/+my-account/my-account-videos/modals/live-stream-information.component.html
index 5e2323b917..2e65e1de9a 100644
--- a/client/src/app/+my-account/my-account-videos/modals/live-stream-information.component.html
+++ b/client/src/app/+my-account/my-account-videos/modals/live-stream-information.component.html
@@ -14,6 +14,8 @@
<div class="form-group">
<label for="liveVideoStreamKey" i18n>Live stream key</label>
<my-input-readonly-copy id="liveVideoStreamKey" [value]="streamKey"></my-input-readonly-copy>
+
+ <div class="form-group-description" i18n>⚠️ Never share your stream key with anyone.</div>
</div>
</div>
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html
index d9e09c453e..705d6e71a8 100644
--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html
+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html
@@ -210,6 +210,8 @@
<div class="form-group">
<label for="liveVideoStreamKey" i18n>Live stream key</label>
<my-input-readonly-copy id="liveVideoStreamKey" [value]="liveVideo.streamKey"></my-input-readonly-copy>
+
+ <div class="form-group-description" i18n>⚠️ Never share your stream key with anyone.</div>
</div>
<div class="form-group" *ngIf="isSaveReplayEnabled()">
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index 351676a388..1456eac6f0 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -323,6 +323,13 @@ table {
}
}
+.form-group-description {
+ @extend .text-muted;
+
+ font-size: 90%;
+ margin-top: 10px;
+}
+
@media screen and (max-width: #{breakpoint(xxl)}) {
.main-col {
&.expanded {