summaryrefslogtreecommitdiff
path: root/indra/llplugin/llpluginclassmedia.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-09-22 14:55:07 +0800
committerErik Kundiman <erik@megapahit.org>2026-09-22 14:55:07 +0800
commit66877554dbdec33d28171420a2b4fde65e309e7c (patch)
treebe44385b4713d920bad4f77a4905b87f0eb5254a /indra/llplugin/llpluginclassmedia.cpp
parent9391fa2734ae74e9d49d74f7b2df181b526c6605 (diff)
parent8fb3801667bf5f8fadfe191d8628b2b3cf443273 (diff)
Merge tag 'Second_Life_Develop#8fb38016-2026-09-12' into 26.5
Diffstat (limited to 'indra/llplugin/llpluginclassmedia.cpp')
-rw-r--r--indra/llplugin/llpluginclassmedia.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp
index 32ecf7bcd1..43b670f415 100644
--- a/indra/llplugin/llpluginclassmedia.cpp
+++ b/indra/llplugin/llpluginclassmedia.cpp
@@ -1317,8 +1317,16 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message)
else if (message_name == "file_download")
{
mFileDownloadFilename = message.getValue("filename");
+ mFileDownloadProgressPercent = 0;
+ mFileDownloadProgressComplete = false;
mediaEvent(LLPluginClassMediaOwner::MEDIA_EVENT_FILE_DOWNLOAD);
}
+ else if (message_name == "file_download_progress")
+ {
+ mFileDownloadProgressPercent = message.getValueS32("percent");
+ mFileDownloadProgressComplete = message.getValueBoolean("complete");
+ mediaEvent(LLPluginClassMediaOwner::MEDIA_EVENT_FILE_DOWNLOAD_PROGRESS);
+ }
else if(message_name == "debug_message")
{
mDebugMessageText = message.getValue("message_text");