[Android] Get rid of metadata and new ML progress API

Nicolas Pomepuy git at videolan.org
Fri Jul 9 11:52:55 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jul  9 10:26:27 2021 +0200| [0a84d7f0e401621ab0fd3b796f9bf21f4dcc13ce] | committer: Nicolas Pomepuy

Get rid of metadata and new ML progress API

This commit gets rid of the deprecated PROGRESS and SEEN
metadata. It also uses the new progress API using both
lastTime and lastPosition fields. Now the only Single Sources
Of Trust are the DB fields lastTime, lastPosition and playCount

> https://code.videolan.org/videolan/vlc-android/commit/0a84d7f0e401621ab0fd3b796f9bf21f4dcc13ce
---

 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  |  2 --
 .../src/org/videolan/vlc/media/PlayerController.kt |  5 ++++
 .../src/org/videolan/vlc/media/PlaylistManager.kt  | 32 ++++++++++------------
 .../videolan/vlc/util/DummyMediaWrapperProvider.kt |  2 +-
 .../vlc/viewmodels/mobile/VideosViewModel.kt       | 12 ++++----
 buildsystem/compile-medialibrary.sh                |  2 +-
 medialibrary/jni/AndroidMediaLibrary.cpp           | 13 +++++++--
 medialibrary/jni/AndroidMediaLibrary.h             |  3 +-
 medialibrary/jni/medialibrary.cpp                  | 25 ++++++++++++++---
 medialibrary/jni/utils.cpp                         |  7 ++---
 .../videolan/medialibrary/MLServiceLocator.java    | 12 ++++----
 .../videolan/medialibrary/MedialibraryImpl.java    | 11 ++++++--
 .../medialibrary/interfaces/Medialibrary.java      |  3 +-
 .../interfaces/media/MediaWrapper.java             | 27 ++++++++++++------
 .../medialibrary/media/MediaWrapperImpl.java       | 16 ++++++++---
 .../medialibrary/stubs/StubDataSource.java         | 12 ++++----
 .../medialibrary/stubs/StubMediaWrapper.java       | 13 ++++++---
 .../medialibrary/stubs/StubMedialibrary.java       | 10 +++++--
 18 files changed, 133 insertions(+), 74 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/0a84d7f0e401621ab0fd3b796f9bf21f4dcc13ce


More information about the Android mailing list