Im currently trying to avoid buffering when I seek backwards by 10s. However when I seek back, the item buffers resulting in a position of 0 and the seek bar jumping from current position to 0 back to seeked position.
val cacheConfig = CacheConfig(playerOptions?.getDouble(MAX_CACHE_SIZE_KEY)?.toLong())
val playerConfig = PlayerConfig(
interceptPlayerActionsTriggeredExternally = true,
handleAudioBecomingNoisy = true,
handleAudioFocus = true,
audioContentType = AudioContentType.SPEECH // Setting this will result in pausing the audio rather then ducking
}
)
val automaticallyUpdateNotificationMetadata = false
player = QueuedAudioPlayer(this@MusicService, playerConfig, bufferConfig, cacheConfig)
player.automaticallyUpdateNotificationMetadata = automaticallyUpdateNotificationMetadata
if (playerInitialized == false) {
observeEvents()
}
playerInitialized = true
}`
Hi,
Im currently trying to avoid buffering when I seek backwards by 10s. However when I seek back, the item buffers resulting in a position of 0 and the seek bar jumping from current position to 0 back to seeked position.
This is how im setting the buffer atm
`fun setupPlayer(playerOptions: Bundle?) { val bufferConfig = BufferConfig( playerOptions?.getDouble(MIN_BUFFER_KEY)?.toMilliseconds()?.toInt(), playerOptions?.getDouble(MAX_BUFFER_KEY)?.toMilliseconds()?.toInt(), playerOptions?.getDouble(PLAY_BUFFER_KEY)?.toMilliseconds()?.toInt(), playerOptions?.getDouble(BACK_BUFFER_KEY)?.toMilliseconds()?.toInt(), )
the values im passing in