diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-14 12:21:07 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-14 12:21:07 +0100 |
commit | cd5dc7188b27c227d4cb0d4e569180822ecfa250 (patch) | |
tree | 2f6755f4175f408bf8764c956a1cacf341d22f1b /client/src/app/shared | |
parent | 402145b8630d1908c35f8c22846ddc4475f25d3e (diff) | |
download | PeerTube-cd5dc7188b27c227d4cb0d4e569180822ecfa250.tar.gz PeerTube-cd5dc7188b27c227d4cb0d4e569180822ecfa250.tar.zst PeerTube-cd5dc7188b27c227d4cb0d4e569180822ecfa250.zip |
Add link to the documentation for live streaming
Diffstat (limited to 'client/src/app/shared')
4 files changed, 23 insertions, 2 deletions
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 index 000000000..0c54c7044 --- /dev/null +++ b/client/src/app/shared/shared-video-live/live-documentation-link.component.html | |||
@@ -0,0 +1,4 @@ | |||
1 | <div i18n> | ||
2 | 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> | ||
3 | to learn how to use the PeerTube live streaming feature. | ||
4 | </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 index 000000000..be4006ce8 --- /dev/null +++ b/client/src/app/shared/shared-video-live/live-documentation-link.component.ts | |||
@@ -0,0 +1,10 @@ | |||
1 | import { Component } from '@angular/core' | ||
2 | |||
3 | @Component({ | ||
4 | selector: 'my-live-documentation-link', | ||
5 | templateUrl: './live-documentation-link.component.html', | ||
6 | styleUrls: [ ] | ||
7 | }) | ||
8 | export class LiveDocumentationLinkComponent { | ||
9 | |||
10 | } | ||
diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.html b/client/src/app/shared/shared-video-live/live-stream-information.component.html index 8d9467fe5..e7b00cd01 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.html +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.html | |||
@@ -11,6 +11,10 @@ | |||
11 | <div class="badge badge-info" *ngIf="live.saveReplay" i18n>Replay will be saved</div> | 11 | <div class="badge badge-info" *ngIf="live.saveReplay" i18n>Replay will be saved</div> |
12 | </div> | 12 | </div> |
13 | 13 | ||
14 | <div class="alert alert-info"> | ||
15 | <my-live-documentation-link></my-live-documentation-link> | ||
16 | </div> | ||
17 | |||
14 | <div class="form-group"> | 18 | <div class="form-group"> |
15 | <label for="liveVideoRTMPUrl" i18n>Live RTMP Url</label> | 19 | <label for="liveVideoRTMPUrl" i18n>Live RTMP Url</label> |
16 | <my-input-toggle-hidden id="liveVideoRTMPUrl" [value]="live.rtmpUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> | 20 | <my-input-toggle-hidden id="liveVideoRTMPUrl" [value]="live.rtmpUrl" [withToggle]="false" [withCopy]="true" [show]="true" [readonly]="true"></my-input-toggle-hidden> |
diff --git a/client/src/app/shared/shared-video-live/shared-video-live.module.ts b/client/src/app/shared/shared-video-live/shared-video-live.module.ts index c35c2caa3..f5e153ac9 100644 --- a/client/src/app/shared/shared-video-live/shared-video-live.module.ts +++ b/client/src/app/shared/shared-video-live/shared-video-live.module.ts | |||
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core' | |||
3 | import { SharedFormModule } from '../shared-forms' | 3 | import { SharedFormModule } from '../shared-forms' |
4 | import { SharedGlobalIconModule } from '../shared-icons' | 4 | import { SharedGlobalIconModule } from '../shared-icons' |
5 | import { SharedMainModule } from '../shared-main/shared-main.module' | 5 | import { SharedMainModule } from '../shared-main/shared-main.module' |
6 | import { LiveDocumentationLinkComponent } from './live-documentation-link.component' | ||
6 | import { LiveStreamInformationComponent } from './live-stream-information.component' | 7 | import { LiveStreamInformationComponent } from './live-stream-information.component' |
7 | import { LiveVideoService } from './live-video.service' | 8 | import { LiveVideoService } from './live-video.service' |
8 | 9 | ||
@@ -14,11 +15,13 @@ import { LiveVideoService } from './live-video.service' | |||
14 | ], | 15 | ], |
15 | 16 | ||
16 | declarations: [ | 17 | declarations: [ |
17 | LiveStreamInformationComponent | 18 | LiveStreamInformationComponent, |
19 | LiveDocumentationLinkComponent | ||
18 | ], | 20 | ], |
19 | 21 | ||
20 | exports: [ | 22 | exports: [ |
21 | LiveStreamInformationComponent | 23 | LiveStreamInformationComponent, |
24 | LiveDocumentationLinkComponent | ||
22 | ], | 25 | ], |
23 | 26 | ||
24 | providers: [ | 27 | providers: [ |