mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Support max FPS configuration
This commit is contained in:
parent
0bd2474fed
commit
bbaf96d60d
37 changed files with 736 additions and 623 deletions
|
@ -341,10 +341,14 @@ class LiveManager {
|
|||
|
||||
inputLocalUrl,
|
||||
inputPublicUrl,
|
||||
|
||||
fps,
|
||||
bitrate,
|
||||
ratio,
|
||||
|
||||
inputResolution: resolution,
|
||||
allResolutions,
|
||||
|
||||
hasAudio,
|
||||
hasVideo,
|
||||
probe
|
||||
|
@ -363,7 +367,10 @@ class LiveManager {
|
|||
fps: number
|
||||
bitrate: number
|
||||
ratio: number
|
||||
|
||||
inputResolution: number
|
||||
allResolutions: number[]
|
||||
|
||||
hasAudio: boolean
|
||||
hasVideo: boolean
|
||||
probe: FfprobeData
|
||||
|
@ -384,7 +391,18 @@ class LiveManager {
|
|||
videoLive,
|
||||
user,
|
||||
|
||||
...pick(options, [ 'inputLocalUrl', 'inputPublicUrl', 'bitrate', 'ratio', 'fps', 'allResolutions', 'hasAudio', 'hasVideo', 'probe' ])
|
||||
...pick(options, [
|
||||
'inputLocalUrl',
|
||||
'inputPublicUrl',
|
||||
'inputResolution',
|
||||
'bitrate',
|
||||
'ratio',
|
||||
'fps',
|
||||
'allResolutions',
|
||||
'hasAudio',
|
||||
'hasVideo',
|
||||
'probe'
|
||||
])
|
||||
})
|
||||
|
||||
muxingSession.on('live-ready', () => this.publishAndFederateLive({ live: videoLive, ratio, audioOnlyOutput, localLTags }))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue