fix(speed): player speed saves across instances again

This commit is contained in:
Quickdesh 2023-08-08 16:24:51 +05:30
parent feb1796f92
commit e230a07dcf

View file

@ -411,6 +411,7 @@ class PlayerActivity : BaseActivity() {
val logLevel = if (viewModel.networkPreferences.verboseLogging().get()) "info" else "warn"
player.initialize(applicationContext.filesDir.path, logLevel)
MPVLib.observeProperty("chapter-list", MPVLib.mpvFormat.MPV_FORMAT_NONE)
MPVLib.setPropertyDouble("speed", playerPreferences.playerSpeed().get().toDouble())
mpvUpdateHwDec(HwDecState.get(playerPreferences.standardHwDec().get()))
MPVLib.setOptionString("keep-open", "always")
MPVLib.setOptionString("ytdl", "no")