Security settings - Storm JavaScript Library

In order to secure access to the stream, a security token can be added to the player config. The token must be provided by a server-side code (PHP, ASP.NET etc.). It must also be configured on the server side.

For more information on how to setup a security token, please check Stream security - Storm Streaming Server section.

Sample Code

                        
const streamConfig = {
    stream: {
      ... // stream configuration
    },
    settings: {
        ... // general configuration
        security: {
            type: "token",
            token: "3f7af6d8a2df9307902f62ff16f1678466",
        }
    }
};
                    

Description of Fields and Parameters

Parameter name Parameter type Required Default Description
type string Yes - Defines type of security mechanism. At this point only "token" is available.
token string Yes - A token generated by server-side script.
Table 1. Security Configuration Table
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.