player: add a metadata listener API
And use the loudness measurement as a first use case. The main difference between metadata listeners the player listeners are: - The information returned by metadata events is mainly useful for the UI, it should not be used to control the player. - It's not possible to call or lock the player from metadata events - Registering a metadata could cost some CPU cycle since it may spawn a measurement filter to get the requested metadata. Such cost should be explained in the comment of vlc_player_metadata_option enum. Some player events could be moved to metadata events, like the statistics one.
Showing
- include/vlc_player.h 112 additions, 0 deletionsinclude/vlc_player.h
- src/Makefile.am 1 addition, 0 deletionssrc/Makefile.am
- src/libvlccore.sym 2 additions, 0 deletionssrc/libvlccore.sym
- src/player/metadata.c 222 additions, 0 deletionssrc/player/metadata.c
- src/player/player.c 7 additions, 2 deletionssrc/player/player.c
- src/player/player.h 15 additions, 0 deletionssrc/player/player.h
src/player/metadata.c
0 → 100644
Please register or sign in to comment