summaryrefslogtreecommitdiff
path: root/indra/llplugin
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-23 21:48:07 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-23 21:48:07 +0800
commit5a2aaba40f6b23b9497eceb0cb4e753c1255732e (patch)
tree7d10b4c04932e58b029bd4a984e6eaa533e28082 /indra/llplugin
parent8081dba75bd761cad54ecb212fbbb5499c75b693 (diff)
Stream notification header uses title metadata
Diffstat (limited to 'indra/llplugin')
-rw-r--r--indra/llplugin/llpluginclassmedia.cpp4
-rw-r--r--indra/llplugin/llpluginclassmedia.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp
index 2da24adbf7..f7f38b83cc 100644
--- a/indra/llplugin/llpluginclassmedia.cpp
+++ b/indra/llplugin/llpluginclassmedia.cpp
@@ -1211,6 +1211,10 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message)
mMediaName = message.getValue("name");
mediaEvent(LLPluginClassMediaOwner::MEDIA_EVENT_NAME_CHANGED);
}
+ else if(message_name == "title_text")
+ {
+ mMediaTitle = message.getValue("title");
+ }
else if(message_name == "nowplaying_text")
{
mMediaNowPlaying = message.getValue("nowplaying");
diff --git a/indra/llplugin/llpluginclassmedia.h b/indra/llplugin/llpluginclassmedia.h
index 109f3880c5..80862284ff 100644
--- a/indra/llplugin/llpluginclassmedia.h
+++ b/indra/llplugin/llpluginclassmedia.h
@@ -311,6 +311,7 @@ public:
const std::string& getMediaName() const { return mMediaName; };
+ const std::string& getMediaTitle() const { return mMediaTitle; };
const std::string& getMediaNowPlaying() const { return mMediaNowPlaying; };
std::string getMediaDescription() const { return mMediaDescription; };
@@ -429,6 +430,7 @@ protected:
bool mCanPaste;
std::string mMediaName;
+ std::string mMediaTitle;
std::string mMediaNowPlaying;
std::string mMediaDescription;