For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
      • Autoplay, loop, and mute
      • Control playback speed
      • Set the volume preference
      • Control playback resolution
      • Set the playback start point
      • Set the seek duration
      • Manage audio and subtitles
      • Add seek preview thumbnails
      • Add chapters to the video timeline
      • Listen to player events
      • Cast to Chromecast (Beta)
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Disable volume preference
Web playerPlayback

Set the volume preference

Was this page helpful?
Previous

Control playback resolution

Next
Built with

Customize FastPix Player volume preferences to control audio behavior across sessions.

Customizing volume behavior in the FastPix Player helps to create a tailored experience for users by managing how volume settings are remembered or reset. By default, FastPix Player saves the volume level that a viewer sets during a playback session and automatically applies this preference in future sessions. This feature enhances convenience for users, allowing them to maintain a consistent volume setting without needing to adjust it each time they view a video.


Disable volume preference

To modify this behavior, you can use the no-volume-pref attribute. When this attribute is applied, the player will not store the volume setting from a previous session. This ensures that each video playback starts at the default volume level, providing a uniform listening experience across different videos. It is particularly useful when consistent playback volume is necessary or when you want to prevent personalized volume preferences from being retained for specific videos.

This capability provides flexibility in managing volume control. By disabling volume preference storage, you can standardize the initial playback volume, which is ideal for ensuring a controlled audio experience regardless of a viewer’s previous settings. Additionally, it can be beneficial in scenarios where storing user preferences is not desirable, such as public or shared environments.


Example configuration:

1<fastpix-player
2 playback-id="{Playback_id}"
3 no-volume-pref
4></fastpix-player>

In this example, the no-volume-pref attribute is applied, ensuring that the volume setting will not be stored between playback sessions.