basic setting config
This commit is contained in:
		
							
								
								
									
										9
									
								
								dist/main.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								dist/main.js
									
									
									
									
										vendored
									
									
								
							| @ -6,6 +6,7 @@ let transcodingManager; | |||||||
| const DEFAULT_HARDWARE_DECODE = false; | const DEFAULT_HARDWARE_DECODE = false; | ||||||
| const DEFAULT_VOD_QUALITY = "p7"; | const DEFAULT_VOD_QUALITY = "p7"; | ||||||
| const DEFAULT_LIVE_QUALITY = "hq"; | const DEFAULT_LIVE_QUALITY = "hq"; | ||||||
|  | const DEFAULT_CQ = 21; | ||||||
| const DEFAULT_BITRATES = new Map([ | const DEFAULT_BITRATES = new Map([ | ||||||
|     [0, 64 * 1000], |     [0, 64 * 1000], | ||||||
|     [144, 320 * 1000], |     [144, 320 * 1000], | ||||||
| @ -20,6 +21,7 @@ let pluginSettings = { | |||||||
|     hardwareDecode: DEFAULT_HARDWARE_DECODE, |     hardwareDecode: DEFAULT_HARDWARE_DECODE, | ||||||
|     vodQuality: DEFAULT_VOD_QUALITY, |     vodQuality: DEFAULT_VOD_QUALITY, | ||||||
|     liveQuality: DEFAULT_LIVE_QUALITY, |     liveQuality: DEFAULT_LIVE_QUALITY, | ||||||
|  |     cqQuality: DEFAULT_CQ, | ||||||
|     baseBitrate: new Map(DEFAULT_BITRATES) |     baseBitrate: new Map(DEFAULT_BITRATES) | ||||||
| }; | }; | ||||||
| let latestStreamNum = 9999; | let latestStreamNum = 9999; | ||||||
| @ -72,6 +74,13 @@ async function register({ settingsManager, peertubeHelpers, transcodingManager: | |||||||
|         default: DEFAULT_LIVE_QUALITY.toString(), |         default: DEFAULT_LIVE_QUALITY.toString(), | ||||||
|         private: false |         private: false | ||||||
|     }); |     }); | ||||||
|  |     registerSetting({ | ||||||
|  |         name: 'constant-quality', | ||||||
|  |         label: 'Constant Quality (-cq)', | ||||||
|  |         type: 'input', | ||||||
|  |         default: DEFAULT_CQ.toString(), | ||||||
|  |         private: false, | ||||||
|  |     }); | ||||||
|     registerSetting({ |     registerSetting({ | ||||||
|         name: 'base-bitrate-description', |         name: 'base-bitrate-description', | ||||||
|         label: 'Base bitrate', |         label: 'Base bitrate', | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user