Articles on: Common Questions

Understanding URL Parameter

How Does URL Parameter Work?

Passing parameters through the URL is efficient for personalizing and configuring online video playback experiences. By attaching specific information to the URL of a video player, you can adjust various settings, from colors and titles to functionalities like autoplay and progress saving. This simplified and versatile process allows content creators to offer highly customized viewing experiences to users, catering to their individual preferences. In this summary, we'll explore the types of query parameters available and provide practical examples of how to apply them.

To pass parameters through the URL, you can append the desired parameters to the destination URL after the question mark (?), followed by the parameter name, an equal sign (=), and the parameter's value. Parameters are separated by ampersands (&).

Some Examples:

Example of String Query Parameters:

String parameters are pieces of information you can send along with a URL to customize how a web page or application behaves. These parameters consist of a name and a value, separated by an equal sign (=), and they are used to configure various features, such as colors, titles, and text on a page or within an application.

For example, if you want to set the background color of a web page to red, you can use a string parameter named "color" with the value "red" in the URL. As a result, the player will be displayed with a red background.


Example of Boolean Parameters:

Boolean parameters are pieces of information you can include in a URL to define settings that have only two possible options: true or false. They are used to control specific behaviors on a web page or application, determining whether a particular feature should be enabled (true) or disabled (false).

For example, you can use a boolean parameter called "autoplay" in a URL to indicate whether a video should start automatically when the page loads. If set to "true," the video will start automatically; if set to "false," the video won't start automatically.


Example of Numeric Parameters:

Numeric parameters are pieces of information that can be inserted into a URL to set numerical values that affect the behavior or appearance of a web page or application. These values are used to configure specific features that require numbers, such as font size, video playback speed, opacity of elements, and more.

For example, if you want to increase the font size of video captions on a web page, you can use a numeric parameter called "captionsFontSize" and assign it a value, such as "24," to set the font size to 24 pixels.


Remember that you can combine multiple query parameters in the same URL, separating them with the ampersand symbol &. Be sure to use the correct parameter names and assign the desired values according to your needs.

In summary, the ability to pass parameters through the URL opens up a wide range of possibilities for customizing the web video playback experience. From choosing colors and styles to autoplay functionality and caption settings, you have full control over how videos are presented to viewers. This not only enhances the user experience, making it more engaging and tailored to individual preferences but also provides opportunities for optimizing the video platform in terms of usability and efficiency. Therefore, smart use of query parameters in the URL is an essential tool for creating tailored and engaging video experiences in the digital age.

If you want to learn more about our documentation, please visit the link below:
Parameter Documentation

Do You Have Any Questions?

If you still have any questions or need additional assistance in using URL query parameters or any other related topic, please don't hesitate to contact our support team! We are here to help clarify your doubts and provide additional guidance to ensure you make the most of the customization capabilities available on our platform. Your satisfaction and understanding are of utmost importance to us, and we are ready to assist you in your journey. Feel free to reach out to us at any time, and we will be happy to collaborate with you.

Updated on: 10/03/2023

Was this article helpful?

Share your feedback


Thank you!