google / google/ExoPlayer

how to configure vast ad buffer time

Open
#10,241 3 comments 0 reactions 1 assignee Assigned to @marcbaechinger View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

hi there,
i want to display VAST ads without content video. but it takes too long time on buffering state. DefaultLoadControl seems has no effets on vast ads.
`
TrackSelector trackSelector = new DefaultTrackSelector(getContext());
DefaultLoadControl loadControl = new DefaultLoadControl
.Builder()
// TODO: 2022/4/29 test
.setBufferDurationsMs(1 * 1000, 1 * 1000, 1000, 1000)
.build();

mPlayer = new ExoPlayer.Builder(getContext())
.setLoadControl(loadControl)
.setTrackSelector(trackSelector)
.setMediaSourceFactory(mediaSourceFactory)
.build();

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.