For the next step please check our Storm JavaScript Player - Interface & Styling guide where you’ll learn how to customize your player.
One of the interesting features of Storm Player is the ability to set up a so-called "waiting room", which will count down to the designated start of a video broadcast. For this purpose, appropriately configured parameters should be provided in the StormPlayer configuration object. Here is a simple example:
const playerConfig = {
containerID: "container",
width: "100%",
aspectRatio: "16:9",
waitingRoom: {
createTime: "0000-00-00 00:00:00",
startTime: "0000-00-00 00:00:00",
timeZone: "UTC",
posterURL: "https://mydomain.com/pictures/poster.png",
}
};
Parameter name | Parameter type | Required | Default | Description |
---|---|---|---|---|
waitingRoom:createTime | string | yes | - | This parameter defines the moment of creating a given stream (its announcement). The date format should be YYYY-MM-DD HH:MM:SS. |
waitingRoom:startTime | string | yes | - | The exact date when the broadcast will start, relative to the user's time zone, should be in the format YYYY-MM-DD HH:MM:SS. |
waitingRoom:timeZone | string | yes | UTC | Please check https://www.w3schools.com/php/php_ref_timezones.asp for reference. |
waitingRoom:posterURL | string | no | - | A URL to the poster image that will be displayed in the background of the Waiting Room. |
Create a free ticket and our support team will provide you necessary assistance.