Skip to content

Commit

Permalink
fix(speed): player speed saves across instances again
Browse files Browse the repository at this point in the history
  • Loading branch information
quickdesh committed Aug 8, 2023
1 parent feb1796 commit e230a07
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e230a07

Please sign in to comment.