Package com.jwplayer.pub.api
Interface ExoPlayerSettings
public interface ExoPlayerSettings
-
Method Summary
Modifier and TypeMethodDescriptionvoidLoadControlbooleanbooleanReturns whether CMCD logging is enabled.booleanReturns whether locale-based default track selection is enabled.voidsetCmcdEnabled(boolean enabled) Enables or disables Common Media Client Data (CMCD) logging.voidsetLoadControl(LoadControl loadControl) voidsetLocaleBasedTrackSelectionEnabled(boolean enabled) Enables or disables locale-based default track selection.
-
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-trueto enable CMCD,falseto disable.
-
isCmcdEnabled
boolean isCmcdEnabled()Returns whether CMCD logging is enabled.- Returns:
trueif CMCD is enabled,falseotherwise.
-
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-trueto enable locale-based track selection,falseto disable.
-
isLocaleBasedTrackSelectionEnabled
boolean isLocaleBasedTrackSelectionEnabled()Returns whether locale-based default track selection is enabled.- Returns:
trueif locale-based track selection is enabled,falseotherwise.
-