aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lloverlaybar.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2011-03-13 15:19:55 +0100
committerArmin Weatherwax2011-03-13 15:19:55 +0100
commitb543f291fcf945330fd5a533cc7235c20d7cb4c5 (patch)
tree46e725a9a11f6d54535f869d0a2494efaeb6985c /linden/indra/newview/lloverlaybar.cpp
parentfix voice doesn't kick in. (diff)
downloadmeta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.zip
meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.gz
meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.bz2
meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.xz
Henri Beauchamps version of Sione Lomus media filter patch.
from http://sldev.free.fr/ : "MediaFilter_v3: based on code by Sione Lomu with a couple of bugfixes by Tonya Souther, this improved patch brings media and streaming audio URLs filtering (to prevent IP ripping by so-called security systems which violate the SL TOS by catching your IP and associating your various avatars with it, thus violating your anonimity). Beside empowering your viewer with allow/deny/blacklist/whitelist functions per domain, this improved patch makes the difference between external servers (domains names filtering) and in-world servers (scripted objects with built-in HTTP servers). I also fixed various bugs, security holes and shortcomings, refactored the code and improved it, and added a whitelist/blacklist erasing function." Imprudence changes: added "MediaFilter" debug to be able to inspect the full url and media texture uuid
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lloverlaybar.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp
index 4e1d03e..93b73c7 100644
--- a/linden/indra/newview/lloverlaybar.cpp
+++ b/linden/indra/newview/lloverlaybar.cpp
@@ -383,6 +383,23 @@ void LLOverlayBar::onClickStandUp(void*)
383} 383}
384 384
385//////////////////////////////////////////////////////////////////////////////// 385////////////////////////////////////////////////////////////////////////////////
386void LLOverlayBar::audioFilterPlay()
387{
388 if (gOverlayBar && gOverlayBar->mMusicState != PLAYING)
389 {
390 gOverlayBar->mMusicState = PLAYING;
391 }
392}
393
394void LLOverlayBar::audioFilterStop()
395{
396 if (gOverlayBar && gOverlayBar->mMusicState != STOPPED)
397 {
398 gOverlayBar->mMusicState = STOPPED;
399 }
400}
401
402////////////////////////////////////////////////////////////////////////////////
386// static media helpers 403// static media helpers
387// *TODO: Move this into an audio manager abstraction 404// *TODO: Move this into an audio manager abstraction
388//static 405//static
@@ -416,6 +433,7 @@ void LLOverlayBar::toggleMediaPlay(void*)
416 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); 433 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
417 if (parcel) 434 if (parcel)
418 { 435 {
436 LLViewerParcelMedia::sIsUserAction = true;
419 LLViewerParcelMedia::play(parcel); 437 LLViewerParcelMedia::play(parcel);
420 } 438 }
421 } 439 }
@@ -447,7 +465,8 @@ void LLOverlayBar::toggleMusicPlay(void*)
447 // stream is stopped, it doesn't return the right thing - commenting out for now. 465 // stream is stopped, it doesn't return the right thing - commenting out for now.
448 // if ( gAudioStream->isInternetStreamPlaying() == 0 ) 466 // if ( gAudioStream->isInternetStreamPlaying() == 0 )
449 { 467 {
450 gAudioStream->startInternetStream(parcel->getMusicURL()); 468 LLViewerParcelMedia::sIsUserAction = true;
469 LLViewerParcelMedia::playStreamingMusic(parcel);
451 } 470 }
452 } 471 }
453 } 472 }