Skip to content

Android: migration needed to get rid of metadata

Historically, the Android app uses metadata to keep some media related data that were not implemented in the ML.

Now is the time to get rid of it for harmonization.

There are two metadata to get rid of:

We have to migrate from the meta to the playCount to make it the new SSOT

  • IMedia::MetadataType::Progress (now obsolete) is still currently used in the app to resume the playback, when IMedia::progress() is used in the UI. It seems that both data are valid and no migration is needed here

EDIT: IMedia::MetadataType::Progress is still useful in case we don't know the media length. We use the meta to be able to resume the playback when the saved data in the Media table is useless (duration: -1 and progress -1) image__5_image__6_

Edited by Nicolas Pomepuy
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information