'ExoPlayer. How to specify timeout to loading HLS manifest?

How to specify timeout to load HLS manifest with ExoPlayer?

HLS manifest loading ignore option

DefaultHttpDataSource.Factory()
    .setConnectTimeoutMs(timeout)
    .setReadTimeoutMs(timeout)

applies only to chunks loading.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source