Storm docs logo
Search the docs.../
Explore Storm Products

Quality Settings - Storm JS Player Core

In this guide, you will get to know all the configuration options for controlling quality in the library.

Sample Code
Code iconjavascript
const streamConfig = {
    stream: {
      ... // stream configuration
    },
    settings: {
        ... // basic configuration
        quality: {
            controlMode: "RESOLUTION_AWARE",
            initialUpgradeTimeout: 30,
            maxUpgradeTimeout: 3600
        }
    }
};

Description of Fields and Parameters

Parameter nameParameter typeRequiredDefaultDescription
controlModestringNoRESOLUTION_AWAREThis is a quality control mode. Each mode selects the stream quality differently based on the available parameters. A full list of available modes along with their descriptions can be found below.
initialUpgradeTimeoutnumberNo30This parameter defines the time interval (in seconds) between successive attempts to change the quality.
maxUpgradeTimeoutnumberNo3600This parameter defines the maximum time interval (in seconds) allowed between quality change attempts.

Quality Control Modes

Mode nameDescription
RESOLUTION_AWAREThe quality will be selected based on the dimensions of the library window and the available video qualities. The substream offering the resolution closest to those dimensions will be selected as the primary one.
PASSIVEThe quality will be selected based on previously saved preferences determined by the RESOLUTION_AWARE mode. If the library was previously initialized in RESOLUTION_AWARE mode, the quality preferences will be stored and this mode will restore them without re-running the analysis. This mode is well-suited for use with a thumbnail that can later be replaced by a fully-featured player.
HIGHEST_QUALITYThe substream offering the highest quality (resolution) will always be selected as the primary one.
LOWEST_QUALITYThe substream offering the lowest quality (resolution) will always be selected as the primary one.

Next Step

For the next step please check our Storm JS Player Core - Storage Settings guide where you'll learn about how to configure storage options.

Blog
Support
About us
Patents
Term of use
Privacy policy
Contact
©2026 Storm Streaming Media. All Rights Reserved.