optional quality and resolution

This commit is contained in:
Devaev Maxim
2020-07-13 04:10:26 +03:00
parent 07fb731b21
commit 77f3dab55c
8 changed files with 122 additions and 29 deletions

View File

@@ -67,6 +67,10 @@ export function Streamer() {
/************************************************************************/
self.setState = function(state) {
if (state) {
tools.setFeatureEnabled($("stream-quality"), state.features.quality && (state.state === null || state.state.encoder.quality > 0));
}
if (state && state.state) {
let max_fps = state.limits.max_fps;
state = state.state;