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

Basic Settings - Storm JS Player Core

In this guide, you will get to know all the basic configuration options and parameters that Storm JS Player Core can accept. More advanced options and parameters can be found under Advanced Settings tab.

Basic Sample Code

Sample Code
Code iconjavascript
const streamConfig = {
    /*
     * Configuration for server connection and the stream key.
     */
    stream: {
        serverList: [{
            host: "yourdomain.com",
            application: "live",
            port: 443,
            ssl: true
        }],
        streamKey: "test",
    },
    /*
     * Player settings (some are optional). All available parameters are explained below.
     */
    settings: {
        autoConnect: true,
        autoStart: true,
        restartOnFocus: true,
        restartOnError: true,
        reconnectTime: 1.0,
        video: {
            containerID: "videoContainer",
            aspectRatio: "16:9",
            width: "100%",
        },
        debug: {
            playbackController: true,
            qualityController: true,
            stageController: true
        }
    }
};

/*
 * Initialize the Player Core instance with the provided configuration
 */
const storm = stormPlayerCore(streamConfig);

Description of Fields and Parameters

Parameter nameParameter typeRequiredDefaultDescription
autoConnectbooleanNotrueDefines whether the player should automatically connect to a server upon creation. This will allow for listening to changes in the status of a selected stream. If this option is set to false, a connection will be established when the play or subscribe methods are used.
autoStartbooleanNofalseDefines whether the stream playback should start immediately after the Storm JS Player Core object is created. If autoStart is set to true video element will be muted by default.
restartOnErrorbooleanNofalseIf set to true, Storm JS Player Core will attempt to restart in case of a player error.
reconnectTimenumberNo1.0Specifies the delay that should occur when trying to connect to the next server instance (if a connection fails).
enabledProtocolsArray (string)NoStorm, HLSA list of protocols that Storm JS Player Core should support (depending on the sources). Possible values are "Storm", "HLS".
bufferObjectNoSee Buffer ConfigurationA group of settings related to video buffering. The entire configuration is described in the Buffer Configuration.
videoObjectYes for Storm JS Player Core, No for Storm JS Player UISee Video ConfigurationA group of settings related to the video object. The entire configuration is described in the Video Configuration.
audioObjectNoSee Audio ConfigurationA group of settings related to audio volume. The entire configuration is described in the Audio Configuration.
qualityObjectNoSee Quality ConfigurationA group of settings related to video quality and its management. The entire configuration is described in the Quality Configuration.
storageObjectNoSee Storage ConfigurationA group of settings related to storing viewer's preferences and capabilities. The entire configuration is described in the Storage Configuration.
debugObjectNoSee Debug ConfigurationA group of settings related to debugging. The entire configuration is described in the Debug Configuration.
Next Step

For the next step please check our Storm JS Player Core Video Settings guide where you'll learn about controlling video element.

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