Add link to the documentation for live streaming

pull/3467/head
Chocobozzz 2020-12-14 12:21:07 +01:00
parent 402145b863
commit cd5dc7188b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 27 additions and 2 deletions

View File

@ -210,6 +210,9 @@
<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>

View File

@ -192,6 +192,7 @@ menu {
.logged-in-username {
font-size: 13px;
color: #C6C6C6;
margin-top: 3px;
}
}
}

View File

@ -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>

View File

@ -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 {
}

View File

@ -11,6 +11,10 @@
<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>

View 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: [