Skip to content

History callback not invoked when new entries are added

Description

Medialibrary is not invoking the expected history callback when advancing tracks. The Android Auto UI uses the callback to trigger a home screen refresh in order to update the history thumb.

Expected behavior

Should the markAsPlayed function in medialibrary invoke the history changed callback?

m_ml->getCb()->onHistoryChanged( isStream() ? HistoryType::Media : HistoryType::Network );

See: https://code.videolan.org/videolan/medialibrary/-/blob/master/src/Media.cpp#L453

Context

App version

3.5.0 RC1

Android version

Android 11

Device model

Pixel 3

App mode

Auto

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