From 5702da187ddda62fd19e40c94ed35665c6d6101e Mon Sep 17 00:00:00 2001 From: callum Date: Fri, 30 Oct 2009 12:53:13 -0700 Subject: Implementation for DEV-41993 Mutes media on preview widget in media settings/general panel --- indra/newview/llpanelmediasettingsgeneral.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview/llpanelmediasettingsgeneral.cpp') diff --git a/indra/newview/llpanelmediasettingsgeneral.cpp b/indra/newview/llpanelmediasettingsgeneral.cpp index 6a3617f008..a198499b47 100644 --- a/indra/newview/llpanelmediasettingsgeneral.cpp +++ b/indra/newview/llpanelmediasettingsgeneral.cpp @@ -134,6 +134,11 @@ void LLPanelMediaSettingsGeneral::draw() LLPluginClassMedia* media_plugin = mPreviewMedia->getMediaPlugin(); if( media_plugin ) { + // turn off volume (if we can) for preview. Note: this really only + // works for QuickTime movies right now - no way to control the + // volume of a flash app embedded in a page for example + media_plugin->setVolume( 0 ); + // some controls are only appropriate for time or browser type plugins // so we selectively enable/disable them - need to do it in draw // because the information from plugins arrives assynchronously -- cgit v1.2.3