diff options
| author | Eugene Mutavchi <emutavchi@productengine.com> | 2010-02-08 18:32:53 +0200 | 
|---|---|---|
| committer | Eugene Mutavchi <emutavchi@productengine.com> | 2010-02-08 18:32:53 +0200 | 
| commit | d60d73a9e09dac3fa4508d8eddb8202614ff3536 (patch) | |
| tree | a9d38b20e0f3578cad08ee338a8b3bd7542c2304 | |
| parent | d2d6af3dfa0f8a423016f5972d44a9721b1be1ee (diff) | |
Fixed major bug EXT-5022 (streaming media first use dialog should be removed)
--HG--
branch : product-engine
| -rw-r--r-- | indra/newview/llviewermedia.cpp | 60 | ||||
| -rw-r--r-- | indra/newview/llviewermedia.h | 5 | ||||
| -rw-r--r-- | indra/newview/llviewerparcelmedia.cpp | 9 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 15 | 
4 files changed, 0 insertions, 89 deletions
| diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 9ced0194a2..da090d074c 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -712,7 +712,6 @@ void LLViewerMedia::updateMedia(void *dummy_arg)  	std::vector<LLViewerMediaImpl*> proximity_order;  	bool inworld_media_enabled = gSavedSettings.getBOOL("AudioStreamingMedia"); -	bool needs_first_run = LLViewerMedia::needsMediaFirstRun();  	U32 max_instances = gSavedSettings.getU32("PluginInstancesTotal");  	U32 max_normal = gSavedSettings.getU32("PluginInstancesNormal");  	U32 max_low = gSavedSettings.getU32("PluginInstancesLow"); @@ -838,12 +837,6 @@ void LLViewerMedia::updateMedia(void *dummy_arg)  			if(!pimpl->getUsedInUI())  			{  				new_priority = LLPluginClassMedia::PRIORITY_UNLOADED; -				if(needs_first_run) -				{ -					// Don't do this more than once in this loop. -					needs_first_run = false; -					LLViewerMedia::displayMediaFirstRun(); -				}  			}  		} @@ -913,59 +906,6 @@ void LLViewerMedia::cleanupClass()  	gIdleCallbacks.deleteFunction(LLViewerMedia::updateMedia, NULL);  } - -////////////////////////////////////////////////////////////////////////////////////////// -// static -bool LLViewerMedia::needsMediaFirstRun() -{ -	return gWarningSettings.getBOOL("FirstStreamingMedia"); -} - -////////////////////////////////////////////////////////////////////////////////////////// -// static -void LLViewerMedia::displayMediaFirstRun() -{ -	gWarningSettings.setBOOL("FirstStreamingMedia", FALSE); - -	LLNotificationsUtil::add("ParcelCanPlayMedia", LLSD(), LLSD(), -		boost::bind(firstRunCallback, _1, _2)); -} - -////////////////////////////////////////////////////////////////////////////////////////// -// static -bool LLViewerMedia::firstRunCallback(const LLSD& notification, const LLSD& response) -{ -	S32 option = LLNotificationsUtil::getSelectedOption(notification, response); -	if (option == 0) -	{ -		// user has elected to automatically play media. -		gSavedSettings.setBOOL(LLViewerMedia::AUTO_PLAY_MEDIA_SETTING, TRUE); -		gSavedSettings.setBOOL("AudioStreamingMusic", TRUE); -		gSavedSettings.setBOOL("AudioStreamingMedia", TRUE); - -		LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); -				 -		if (parcel) -		{ -			// play media right now, if available -			LLViewerParcelMedia::play(parcel); -		 -			// play music right now, if available -			std::string music_url = parcel->getMusicURL(); -			if (gAudiop && !music_url.empty()) -				gAudiop->startInternetStream(music_url); -		} -	} -	else -	{ -		gSavedSettings.setBOOL(LLViewerMedia::AUTO_PLAY_MEDIA_SETTING, FALSE); -		gSavedSettings.setBOOL("AudioStreamingMedia", FALSE); -		gSavedSettings.setBOOL("AudioStreamingMusic", FALSE); -	} -	return false; -} - -  //////////////////////////////////////////////////////////////////////////////////////////  // LLViewerMediaImpl  ////////////////////////////////////////////////////////////////////////////////////////// diff --git a/indra/newview/llviewermedia.h b/indra/newview/llviewermedia.h index ff18ed605a..daad70f14f 100644 --- a/indra/newview/llviewermedia.h +++ b/indra/newview/llviewermedia.h @@ -117,11 +117,6 @@ class LLViewerMedia  		// This is the comparitor used to sort the list.  		static bool priorityComparitor(const LLViewerMediaImpl* i1, const LLViewerMediaImpl* i2); -		// For displaying the media first-run dialog. -		static bool needsMediaFirstRun(); -		static void displayMediaFirstRun(); -		static bool firstRunCallback(const LLSD& notification, const LLSD& response); -  };  // Implementation functions not exported into header file diff --git a/indra/newview/llviewerparcelmedia.cpp b/indra/newview/llviewerparcelmedia.cpp index c4fc2e5cab..2c5c0a37e8 100644 --- a/indra/newview/llviewerparcelmedia.cpp +++ b/indra/newview/llviewerparcelmedia.cpp @@ -105,15 +105,6 @@ void LLViewerParcelMedia::update(LLParcel* parcel)  			std::string mediaUrl = std::string ( parcel->getMediaURL () );  			std::string mediaCurrentUrl = std::string( parcel->getMediaCurrentURL()); -			// First use warning -			if( (!mediaUrl.empty() || -			     !parcel->getMusicURL().empty()) -			    && LLViewerMedia::needsMediaFirstRun()) -			{ -				LLViewerMedia::displayMediaFirstRun(); -				return; -			} -  			// if we have a current (link sharing) url, use it instead  			if (mediaCurrentUrl != "" && parcel->getMediaType() == "text/html")  			{ diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 72ac457882..90381c2af4 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -1733,21 +1733,6 @@ Try selecting a single parcel.    <notification     icon="alertmodal.tga" -   name="ParcelCanPlayMedia" -   type="alertmodal"> -This location can play streaming media. -Streaming media requires a fast Internet connection. - -Play streaming media when available? -(You can change this option later under Preferences > Privacy.) -    <usetemplate -     name="okcancelbuttons" -     notext="Disable" -     yestext="Play Media"/> -  </notification> - -  <notification -   icon="alertmodal.tga"     name="CannotDeedLandWaitingForServer"     type="alertmodal">  Unable to deed land: | 
