Interface ExoPlayerSettings


public interface ExoPlayerSettings
  • Method Details

    • setLoadControl

      void setLoadControl(LoadControl loadControl)
    • getLoadControl

      LoadControl getLoadControl()
    • enableChunkLessPreparation

      void enableChunkLessPreparation()
    • isChunkLessPreparationEnabled

      boolean isChunkLessPreparationEnabled()
    • setCmcdEnabled

      void setCmcdEnabled(boolean enabled)
      Enables or disables Common Media Client Data (CMCD) logging.

      When enabled, standardized client metadata is sent in HTTP request headers to CDNs, allowing them to optimize delivery. CMCD is defined by the CTA-5004 specification.

      Disabled by default.

      Parameters:
      enabled - true to enable CMCD, false to disable.
    • isCmcdEnabled

      boolean isCmcdEnabled()
      Returns whether CMCD logging is enabled.
      Returns:
      true if CMCD is enabled, false otherwise.
    • setLocaleBasedTrackSelectionEnabled

      void setLocaleBasedTrackSelectionEnabled(boolean enabled)
      Enables or disables locale-based default track selection.

      When enabled, the player applies the device locale as the preferred audio and text language, sizes the viewport to the physical display, and auto-selects a text track when the OS accessibility captioning service is on. When disabled, the player uses ExoPlayer's default track-selection parameters and honors the stream's own default tracks.

      Disabled by default to preserve the historical default-track behavior.

      Parameters:
      enabled - true to enable locale-based track selection, false to disable.
    • isLocaleBasedTrackSelectionEnabled

      boolean isLocaleBasedTrackSelectionEnabled()
      Returns whether locale-based default track selection is enabled.
      Returns:
      true if locale-based track selection is enabled, false otherwise.