Skip to content

version 0.11.0

Compare
Choose a tag to compare
@wang-bin wang-bin released this 01 Apr 05:13
· 120 commits to master since this release
  • API changes:
    • Add setActiveTracks()
    • Deprecate javaVM(JavaVM*), use SetGlobalOption("jvm", void*) instead. See Wiki
    • Deprecate setLogLevel(LogLevel), use SetGlobalOption("logLevel", name or LogLevel or int value) instead. See Wiki](https://github.com/wang-bin/mdk-sdk/wiki/Global-Options)
    • Deprecate Player.setVideoDecoders(...) and Player.setAudioDecoders(...), use Player.setDecoders(MediaType, ...) instead
    • Add VideoFrame.isValid()
  • Add "dav1d" decoder. Default load libdav1d.5.dylib, libdav1d.so(android), libdav1d.so.5(linux), libdav1d.dll(windows), or set library name via environment var "DAV1D_LIB"
  • Support frame step forward via seek(1, SeekFlag::FromNow|SeekFlag::Frame), also support N frame forward
  • seek() supports seeking to the last frame or the last key frame(has SeekFlag::KeyFrame) if target position > duration
  • Improve video decoder switch
  • setLogHandler(nullptr) once to log to std::clog, set again to disable log completely
  • Fix potential endless wait if stop playback in loop mode
  • Fix the first frame after seek is not the latest frame
  • Fix music cover image not rendered if prepare from pos > 0
  • Fix wrong position() and prepared callback invoked multiple times if play with an audio track file
  • Fix the first frame rendered after seek is not the lastest frame
  • FFmpeg:
    • Support avdevice via "avdevice://format:filename"
    • Support avformat options via url query, starts with "mdkopt=avformat", e.g. "some_url?mdkopt=avformat&fflags=nobuffer"