For the next step please check our Storm JavaScript Audio Settings guide where you’ll learn about volume control.
In this guide, you will learn about all the configuration options for managing the video element, scaling, and setting the player size. If you wish to learn more about how to set the player's size and related configurations, please refer to the Resizing & Scaling Guide.
const streamConfig = {
stream: {
... // stream configuration
},
settings: {
... // basic configuration
video: {
scalingMode: "fill",
containerID: "container",
aspectRatio: "16:9",
width: "100%",
height: "100%",
}
}
};
Parameter name | Parameter type | Required | Default | Description |
---|---|---|---|---|
scalingMode | string | No | fill |
The provided value describes how the video should be scaled relative to its
internal container. Possible values are:
|
aspectRatio | string | No | - | This enforces the appropriate aspect ratio between the width and height of the video object relative to its parent container (parameter containerID). A valid parameter consists of two numbers separated by a colon, for example, "16:9" or "4:3". When calculating the aspect ratio, the value from the "width" parameter will be taken as the base value. Use with “fill” scaling Mode for best results. |
containerID | string | no | - | The ID of the HTML page's DOM element where the video object is to be created. |
width | string | number | No | 100% |
The width/height of the video element can be specified in the following ways:
|
height |
Create a free ticket and our support team will provide you necessary assistance.