diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-08-23 21:48:07 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-08-23 21:48:07 +0800 |
commit | 5a2aaba40f6b23b9497eceb0cb4e753c1255732e (patch) | |
tree | 7d10b4c04932e58b029bd4a984e6eaa533e28082 /indra/media_plugins/libvlc | |
parent | 8081dba75bd761cad54ecb212fbbb5499c75b693 (diff) |
Stream notification header uses title metadata
Diffstat (limited to 'indra/media_plugins/libvlc')
-rw-r--r-- | indra/media_plugins/libvlc/media_plugin_libvlc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp index 8ae9931dd4..b090734c72 100644 --- a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp +++ b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp @@ -295,6 +295,13 @@ void MediaPluginLibVLC::eventCallbacks(const libvlc_event_t* event, void* ptr) } break; case libvlc_MediaMetaChanged: + auto title = libvlc_media_get_meta(parent->mLibVLCMedia, libvlc_meta_Title); + if (title) + { + LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "title_text"); + message.setValue("title", title); + parent->sendMessage(message); + } auto now_playing = libvlc_media_get_meta(parent->mLibVLCMedia, libvlc_meta_NowPlaying); if (now_playing) { |