]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add link to the documentation for live streaming
authorChocobozzz <me@florianbigard.com>
Mon, 14 Dec 2020 11:21:07 +0000 (12:21 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 14 Dec 2020 11:21:07 +0000 (12:21 +0100)
client/src/app/+videos/+video-edit/shared/video-edit.component.html
client/src/app/menu/menu.component.scss
client/src/app/shared/shared-video-live/live-documentation-link.component.html [new file with mode: 0644]
client/src/app/shared/shared-video-live/live-documentation-link.component.ts [new file with mode: 0644]
client/src/app/shared/shared-video-live/live-stream-information.component.html
client/src/app/shared/shared-video-live/shared-video-live.module.ts

index 0c60ec4ec5dcc9f4617ba31cf0595950abca7345..d75f370746c72d5ff87fc37cedea8aafdeefaa38 100644 (file)
       <ng-template ngbNavContent>
         <div class="row live-settings">
           <div class="col-md-12">
+            <div class="alert alert-info">
+              <my-live-documentation-link></my-live-documentation-link>
+            </div>
 
             <div class="form-group">
               <label for="liveVideoRTMPUrl" i18n>Live RTMP Url</label>
index 89dc26e8737acd52d02dacdb831f0d8512f3564b..f369fa17af40ebe62bd1b61e5cc392ac097cb45a 100644 (file)
@@ -192,6 +192,7 @@ menu {
         .logged-in-username {
           font-size: 13px;
           color: #C6C6C6;
+          margin-top: 3px;
         }
       }
     }
diff --git a/client/src/app/shared/shared-video-live/live-documentation-link.component.html b/client/src/app/shared/shared-video-live/live-documentation-link.component.html
new file mode 100644 (file)
index 0000000..0c54c70
--- /dev/null
@@ -0,0 +1,4 @@
+<div i18n>
+  See <a href="https://docs.joinpeertube.org/#/use-create-upload-video?id=publish-a-live-in-peertube-gt-v3" target="_blank" rel="noopener noreferrer">the documentation</a>
+  to learn how to use the PeerTube live streaming feature.
+</div>
diff --git a/client/src/app/shared/shared-video-live/live-documentation-link.component.ts b/client/src/app/shared/shared-video-live/live-documentation-link.component.ts
new file mode 100644 (file)
index 0000000..be4006c
--- /dev/null
@@ -0,0 +1,10 @@
+import { Component } from '@angular/core'
+
+@Component({
+  selector: 'my-live-documentation-link',
+  templateUrl: './live-documentation-link.component.html',
+  styleUrls: [ ]
+})
+export class LiveDocumentationLinkComponent {
+
+}
index 8d9467fe5e86d490a0fc0f17c799e7a55b42582c..e7b00cd01d1afc3bc5f0441c934887c97a0ff3bb 100644 (file)
       <div class="badge badge-info" *ngIf="live.saveReplay" i18n>Replay will be saved</div>
     </div>
 
+    <div class="alert alert-info">
+      <my-live-documentation-link></my-live-documentation-link>
+    </div>
+
     <div class="form-group">
       <label for="liveVideoRTMPUrl" i18n>Live RTMP Url</label>
       <my-input-toggle-hidden id="liveVideoRTMPUrl" [value]="live.rtmpUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden>
index c35c2caa3b16ba186c23989771ef1d63063b28d6..f5e153ac97a4e881e3eecfebbcd535732d2adb5a 100644 (file)
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core'
 import { SharedFormModule } from '../shared-forms'
 import { SharedGlobalIconModule } from '../shared-icons'
 import { SharedMainModule } from '../shared-main/shared-main.module'
+import { LiveDocumentationLinkComponent } from './live-documentation-link.component'
 import { LiveStreamInformationComponent } from './live-stream-information.component'
 import { LiveVideoService } from './live-video.service'
 
@@ -14,11 +15,13 @@ import { LiveVideoService } from './live-video.service'
   ],
 
   declarations: [
-    LiveStreamInformationComponent
+    LiveStreamInformationComponent,
+    LiveDocumentationLinkComponent
   ],
 
   exports: [
-    LiveStreamInformationComponent
+    LiveStreamInformationComponent,
+    LiveDocumentationLinkComponent
   ],
 
   providers: [