Skip to content

v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 17:20
· 7 commits to main since this release
85a2445

This release adds two new APIs to MPVLib and makes the observer interfaces non-breaking.

EventObserver has a new eventEndFile callback that reports why playback of a file ended, including the mpv error code if it failed. The MpvEndFileReason and MpvError constants are available on MPVLib.

override fun eventEndFile(reason: Int, error: Int) {
    when (reason) {
        MpvEndFileReason.MPV_END_FILE_REASON_ERROR ->
            Log.e(TAG, "Playback failed: $error")
        else ->
            Log.d(TAG, "Playback ended")
    }
}

Note: MPV_EVENT_END_FILE is no longer delivered through the event() callback. If you were listening for it there, switch to eventEndFile().

requestLogMessages(level) sets the minimum level of mpv log messages delivered to LogObservers and echoed to logcat. Apps playing authenticated URLs can use this to silence verbose messages that include those URLs.

All EventObserver and LogObserver methods now have default (empty) implementations, so adding new callbacks in the future will no longer be a breaking change. This release contains no breaking API changes.

Other changes:

  • destroy() is now idempotent and can safely be called twice
  • mpv log messages now appear in logcat with their real severity instead of always verbose
  • HTTPS playback no longer stalls waiting for kernel entropy (mbedtls now uses /dev/urandom)
  • mpv now builds with curl

Libraries

Library Version
lua 5.2.4
libunibreak 8.0
libass 0.17.5
harfbuzz 15.1.0
fribidi 1.0.18
freetype 2.15.0
libxml2 2.15.4
fontconfig 2.18.3
mbedtls 3.6.7
libplacebo 7.387.0
dav1d 1.5.4
curl 8.23.0
ffmpeg 9.0.2
mpv 0.42.0

Patches

None

Notes

  • Minimum SDK: 26
  • Compile SDK: 37