Package-level declarations
Types
Link copied to clipboard
class Player(application: Application, credentialsProvider: CredentialsProvider, eventSender: EventSender, audioDecodingMode: AudioDecodingMode = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
AudioDecodingMode.BIT_PERFECT
} else {
AudioDecodingMode.NATIVE
}, userClientIdSupplier: () -> Int? = null, bufferConfiguration: BufferConfiguration = BufferConfiguration(), assetTimeoutConfig: AssetTimeoutConfig = AssetTimeoutConfig(), streamingApiTimeoutConfig: StreamingApiTimeoutConfig = StreamingApiTimeoutConfig(), cacheProvider: CacheProvider = CacheProvider.Internal(), isOfflineMode: Boolean = false, isDebuggable: Boolean = false, okHttpClient: OkHttpClient = OkHttpClient(), playbackPrivilegeProvider: PlaybackPrivilegeProvider = object : PlaybackPrivilegeProvider {
override fun get(mediaProduct: MediaProduct) = PlaybackPrivilege.OK_ONLINE
}, offlinePlayProvider: OfflinePlayProvider? = null, version: String = "1.0.0") : ConfigurationListener
This is the Player that will be used by apps.