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

Installation - Storm JS Player Core

Storm JS Player Core can be easily installed using popular package managers like npm and yarn. You can also attach js file from our CDN. Below you'll find more detailed instructions.

Storm CDN

Feel free to pick our Storm JS Player Core (in IIFE format) from our CDN:

CDN Script
Code iconhtml
<script src="https://cdn-scripts.stormstreaming.com/player-core/1-latest.min.js"></script>

Optionally you can link to the latest major.minor, for example 1.0-latest.min.js, or pick specific release: 1.0.0.min.js

Note

To embed the player on your website you can use our CDN hosted file. It's based on IIFE and it's compatible with all modern browsers! Latest version can be found on our GitHub page: https://github.com/StormStreaming/player-core-js/releases.

Installation via Package Managers

  1. NPM: Before using NPM, please install Node.js.

    To integrate Storm JS Player Core into your project using NPM, execute the following command:

    NPM
    Code iconbash
    npm install @stormstreaming/player-core
    
  2. Yarn: Yarn must be installed before use, which you can do via NPM.

    To incorporate Storm JS Player Core into your project using Yarn, execute the following command:

    Yarn
    Code iconbash
    yarn add @stormstreaming/player-core
    

Manual Installation

You can manually grab index.js from /dist/iife folder on our GitHub page. You will find the latest release here: https://github.com/StormStreaming/player-core-js/releases.

Embedding the Player

Storm JS Player Core comes in IIFE, ESM, AMD, UMD and CJS formats. If you are unfamiliar with these, please grab IIFE version, as it's easiest to embed in a modern browser. All packages are located in /dist folder under their respective names.

Initiating the Player

Once the player is properly linked to your page, an instance can be finally created. Please keep in mind that you can create and manage multiple instances of Storm JS Player Core at a time. Each instance requires a valid configuration object in order to work properly.

Configuration object
Code iconjavascript
const streamConfig = {
    stream: {
        serverList: [{
            host: "localhost",               // Host or IP address of the Storm Streaming Server/Cloud
            application: "live",             // Application name on the Storm Streaming Server/Cloud
            port: 8080,                      // Port used by the Storm Streaming Server/Cloud
            ssl: false                       // Whether to use an SSL or non-SSL connection
        }],
        streamKey: "test"                    // StreamKey we want to connect to
    },
    settings: {
        autoStart: true,                     // Whether the stream should start automatically
        video: {
            containerID: "videoContainer",   // Element ID of the parent container
            width: "100%",                   // Initial width of the player
            aspectRatio: "16:9"              // Enforced aspect ratio
        },
    },
};

Initialization will look different depending on picked JavaScript format:

  1. IIFE (Immediately invoked function expression):

    IIFE
    Code iconjavascript
    const storm = stormPlayerCore(streamConfig);
    
  2. ESM (ECMAScript Modules):

    ESM
    Code iconjavascript
    import {StormPlayerCore} from "../../dist/esm/index.js";
    const storm = new StormPlayerCore(streamConfig);
    
  3. UMD (Universal Module Definition):

    UMD
    Code iconjavascript
    const storm = stormPlayerCore.create(streamConfig);
    
  4. AMD (Asynchronous Module Definition):

    AMD
    Code iconjavascript
    requirejs(['../../dist/amd/index'], function (storm) {
        const stormInstance = new storm.create(streamConfig);
    });
    
Next Step

For the next step please check our Storm JS Player Core - Stream & Server guide where you'll learn how to connect player with Storm Streaming Cloud or Server instance.

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