NetworkEngine

sealed interface NetworkEngine

The network engine used to make network requests supported by the Player.

Inheritors

Types

Link copied to clipboard
data class Cronet(val cronetEngine: CronetEngine) : NetworkEngine

Specify a Cronet engine to support HTTP/2 (and HTTP/3 over QUIC if enabled).

Link copied to clipboard
data class HttpURLConnection(val allowCrossProtocolRedirects: Boolean = false) : NetworkEngine

Android built-in HTTP network engine. It is always available but doesn't support HTTP/2.