ExoPlayerConfig
data class ExoPlayerConfig( clock: Clock = Clock.DEFAULT, trackSelectorParameters: DefaultTrackSelector.Parameters = Parameters.DEFAULT_WITHOUT_CONTEXT, trackSelectionFactory: ExoTrackSelection.Factory = AdaptiveTrackSelection.Factory(), overrideInitialBitrateEstimate: Long = -1, resetOnNetworkTypeChange: Boolean = true, slidingWindowMaxWeight: Int = DefaultBandwidthMeter.DEFAULT_SLIDING_WINDOW_MAX_WEIGHT, enableDecoderFallback: Boolean = true, allowedVideoJoiningTimeMs: Long = DefaultRenderersFactory.DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS, extensionRendererMode: Int = DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF, mediaCodecSelector: MediaCodecSelector = MediaCodecSelector.DEFAULT, allocator: DefaultAllocator = DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE), minBufferMs: Int = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS, maxBufferMs: Int = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS, bufferForPlaybackMs: Int = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS, bufferForPlaybackAfterRebufferMs: Int = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS, prioritizeTimeOverSizeThresholds: Boolean = DefaultLoadControl.DEFAULT_PRIORITIZE_TIME_OVER_SIZE_THRESHOLDS, targetBufferBytes: Int = DefaultLoadControl.DEFAULT_TARGET_BUFFER_BYTES, backBufferDurationMs: Int = DefaultLoadControl.DEFAULT_BACK_BUFFER_DURATION_MS, retainBackBufferFromKeyframe: Boolean = DefaultLoadControl.DEFAULT_RETAIN_BACK_BUFFER_FROM_KEYFRAME, cache: Cache? = null) : LoadControlFactory, BandwidthMeterFactory, TrackSelectorFactory
Content copied to clipboard
Detailed config for building a com.google.android.exoplayer2.SimpleExoPlayer. Only for advanced user.
See also
Constructors
Link copied to clipboard
fun ExoPlayerConfig( clock: Clock = Clock.DEFAULT, trackSelectorParameters: DefaultTrackSelector.Parameters = Parameters.DEFAULT_WITHOUT_CONTEXT, trackSelectionFactory: ExoTrackSelection.Factory = AdaptiveTrackSelection.Factory(), overrideInitialBitrateEstimate: Long = -1, resetOnNetworkTypeChange: Boolean = true, slidingWindowMaxWeight: Int = DefaultBandwidthMeter.DEFAULT_SLIDING_WINDOW_MAX_WEIGHT, enableDecoderFallback: Boolean = true, allowedVideoJoiningTimeMs: Long = DefaultRenderersFactory.DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS, extensionRendererMode: Int = DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF, mediaCodecSelector: MediaCodecSelector = MediaCodecSelector.DEFAULT, allocator: DefaultAllocator = DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE), minBufferMs: Int = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS, maxBufferMs: Int = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS, bufferForPlaybackMs: Int = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS, bufferForPlaybackAfterRebufferMs: Int = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS, prioritizeTimeOverSizeThresholds: Boolean = DefaultLoadControl.DEFAULT_PRIORITIZE_TIME_OVER_SIZE_THRESHOLDS, targetBufferBytes: Int = DefaultLoadControl.DEFAULT_TARGET_BUFFER_BYTES, backBufferDurationMs: Int = DefaultLoadControl.DEFAULT_BACK_BUFFER_DURATION_MS, retainBackBufferFromKeyframe: Boolean = DefaultLoadControl.DEFAULT_RETAIN_BACK_BUFFER_FROM_KEYFRAME, cache: Cache? = null)
Content copied to clipboard
Types
Functions
Link copied to clipboard
Link copied to clipboard
open override fun createDefaultTrackSelector(context: Context): DefaultTrackSelector
Content copied to clipboard
Creates a new DefaultTrackSelector instance, given the Context of the Application.
Link copied to clipboard
Returns a LoadControl.
Extensions
Link copied to clipboard
fun ExoPlayerConfig.createDefaultPlayerPool(context: Context, userAgent: String): ExoPlayerPool
Content copied to clipboard