[Android] Medialibrary Stub: add json file loading

Duncan McNamara git at videolan.org
Tue Dec 17 17:52:04 CET 2019


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Jul  3 10:20:55 2019 +0200| [c97b8f4b6ca413583e5cdf6b8dac188d79780ea3] | committer: Geoffrey Métais

Medialibrary Stub: add json file loading

The prep_media script takes a file or directory and extracts
mediainformation, to create a json file. This json file can later be
used to load fake media data to the medialibrary stub.
The goal of this is to be able to create reusable data profiles for
automated testing.

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

 .../videolan/medialibrary/MLServiceLocator.java    |   1 +
 .../medialibrary/stubs/StubDataSource.java         | 313 +++++++-------------
 .../medialibrary/stubs/StubMedialibrary.java       |  17 +-
 vlc-android/build.gradle                           |   4 +
 vlc-android/flavors/debug/assets/basic_stub.json   | 322 +++++++++++++++++++++
 vlc-android/prep_media.py                          | 135 +++++++++
 .../src/org/videolan/vlc/MediaParsingService.kt    |   6 +
 7 files changed, 584 insertions(+), 214 deletions(-)

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


More information about the Android mailing list