aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-14 23:12:10 -0700
committerMcCabe Maxsted2009-02-14 23:12:10 -0700
commite6cda8b59b9b52617a4c40a9ae6111403a3dba2f (patch)
tree634a47b5ff5c6a908111da0bb59b39c433cb7dc1
parentdevelop.py should now work again under windows (diff)
downloadmeta-impy-e6cda8b59b9b52617a4c40a9ae6111403a3dba2f.zip
meta-impy-e6cda8b59b9b52617a4c40a9ae6111403a3dba2f.tar.gz
meta-impy-e6cda8b59b9b52617a4c40a9ae6111403a3dba2f.tar.bz2
meta-impy-e6cda8b59b9b52617a4c40a9ae6111403a3dba2f.tar.xz
Fixed missing music prompt (streaming now enabled by default)
-rw-r--r--ChangeLog.txt47
-rw-r--r--linden/indra/newview/app_settings/settings.xml4
-rw-r--r--linden/indra/newview/llviewerparcelmedia.cpp8
-rw-r--r--linden/indra/newview/llviewerparcelmgr.cpp20
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/alerts.xml36
5 files changed, 93 insertions, 22 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index b2ef908..2932ab4 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -2,6 +2,53 @@
2=- 1.1.0 RC1 -= 2=- 1.1.0 RC1 -=
3=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
4 4
52009-02-14 McCabe Maxsted <hakushakukun@gmail.com>
6
7 * linden/indra/newview/app_settings/settings.xml:
8 Fixed missing music prompt (streaming now enabled by default).
9 * linden/indra/newview/llviewerparcelmedia.cpp:
10 Ditto.
11 * linden/indra/newview/llviewerparcelmgr.cpp:
12 Ditto.
13 * linden/indra/newview/skins/default/xui/en-us/alerts.xml:
14 Ditto.
15
16
172009-02-13 McCabe Maxsted <hakushakukun@gmail.com>
18
19 * linden/indra/llmedia/llmediaimplgstreamer.cpp:
20 Removed junk code from GStreamer.
21 * linden/indra/llmedia/llmediaimplgstreamer.h:
22 Ditto.
23 * linden/indra/llmedia/llmediaimplgstreamervidplug.cpp:
24 Ditto.
25
26 * linden/indra/newview/app_settings/settings.xml:
27 Fixed sound settings not being correctly muted.
28 * linden/indra/newview/llviewermessage.cpp:
29 Ditto.
30 * linden/indra/newview/llviewerobject.cpp:
31 Ditto.
32 * linden/indra/newview/llvoavatar.cpp:
33 Ditto.
34
35
36 Armin Weatherwax <email@unknown.com>
37
38 * linden/indra/newview/llpreviewlandmark.cpp:
39 Removed search for non-existant floater_preview_new_landmark.xml.
40
41
42 Anders Arnholm <anders@arnholm.se>
43 * linden/indra/llui/lltexteditor.cpp:
44 Fixed crash in LLTextEditor::findHTML
45
46 * linden/indra/llmedia/llmediaimplgstreamer.cpp:
47 Added artist/title tag info support.
48 * linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc:
49 Ditto.
50
51
52009-02-04 McCabe Maxsted <hakushakukun@gmail.com> 522009-02-04 McCabe Maxsted <hakushakukun@gmail.com>
6 53
7 * linden/indra/cmake/CopyWinLibs.cmake: 54 * linden/indra/cmake/CopyWinLibs.cmake:
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 779b668..fbb620c 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -317,7 +317,7 @@
317 <key>Type</key> 317 <key>Type</key>
318 <string>Boolean</string> 318 <string>Boolean</string>
319 <key>Value</key> 319 <key>Value</key>
320 <integer>0</integer> 320 <integer>1</integer>
321 </map> 321 </map>
322 <key>AudioStreamingVideo</key> 322 <key>AudioStreamingVideo</key>
323 <map> 323 <map>
@@ -328,7 +328,7 @@
328 <key>Type</key> 328 <key>Type</key>
329 <string>Boolean</string> 329 <string>Boolean</string>
330 <key>Value</key> 330 <key>Value</key>
331 <integer>0</integer> 331 <integer>1</integer>
332 </map> 332 </map>
333 <key>AutoAcceptNewInventory</key> 333 <key>AutoAcceptNewInventory</key>
334 <map> 334 <map>
diff --git a/linden/indra/newview/llviewerparcelmedia.cpp b/linden/indra/newview/llviewerparcelmedia.cpp
index 956ed03..94f6d84 100644
--- a/linden/indra/newview/llviewerparcelmedia.cpp
+++ b/linden/indra/newview/llviewerparcelmedia.cpp
@@ -384,17 +384,11 @@ void LLViewerParcelMedia::processParcelMediaUpdate( LLMessageSystem *msg, void *
384 384
385void callback_play_media(S32 option, void* data) 385void callback_play_media(S32 option, void* data)
386{ 386{
387 LLParcel* parcel = (LLParcel*)data;
388 if (option == 0) 387 if (option == 0)
389 { 388 {
390 gSavedSettings.setBOOL("AudioStreamingVideo", TRUE); 389 LLParcel* parcel = (LLParcel*)data;
391 LLViewerParcelMedia::play(parcel); 390 LLViewerParcelMedia::play(parcel);
392 } 391 }
393 else
394 {
395 gSavedSettings.setBOOL("AudioStreamingVideo", FALSE);
396 }
397 gSavedSettings.setWarning("FirstStreamingVideo", FALSE); 392 gSavedSettings.setWarning("FirstStreamingVideo", FALSE);
398
399} 393}
400 394
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp
index 5ef6f83..e27e284 100644
--- a/linden/indra/newview/llviewerparcelmgr.cpp
+++ b/linden/indra/newview/llviewerparcelmgr.cpp
@@ -1692,7 +1692,12 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
1692 1692
1693void optionally_start_music(const std::string& music_url) 1693void optionally_start_music(const std::string& music_url)
1694{ 1694{
1695 if (gSavedSettings.getBOOL("AudioStreamingMusic")) 1695 // Check to see if this your first time on a music-enabled parcel.
1696 if (gSavedSettings.getWarning("FirstStreamingMusic"))
1697 {
1698 gViewerWindow->alertXml("ParcelCanPlayMusic", callback_start_music, (void*)&music_url);
1699 }
1700 else if (gSavedSettings.getBOOL("AudioStreamingMusic"))
1696 { 1701 {
1697 // Make the user click the start button on the overlay bar. JC 1702 // Make the user click the start button on the overlay bar. JC
1698 // llinfos << "Starting parcel music " << music_url << llendl; 1703 // llinfos << "Starting parcel music " << music_url << llendl;
@@ -1706,6 +1711,19 @@ void optionally_start_music(const std::string& music_url)
1706 } 1711 }
1707} 1712}
1708 1713
1714
1715void callback_start_music(S32 option, void* data)
1716{
1717 if (option == 0)
1718 {
1719 // Before the callback, we verified the url was good.
1720 // We fetch again to avoid lag while loading.
1721 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
1722 gAudiop->startInternetStream(parcel->getMusicURL());
1723 }
1724 gSavedSettings.setWarning("FirstStreamingMusic", FALSE);
1725}
1726
1709// static 1727// static
1710void LLViewerParcelMgr::processParcelAccessListReply(LLMessageSystem *msg, void **user) 1728void LLViewerParcelMgr::processParcelAccessListReply(LLMessageSystem *msg, void **user)
1711{ 1729{
diff --git a/linden/indra/newview/skins/default/xui/en-us/alerts.xml b/linden/indra/newview/skins/default/xui/en-us/alerts.xml
index 0be529f..92e2014 100644
--- a/linden/indra/newview/skins/default/xui/en-us/alerts.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/alerts.xml
@@ -1893,20 +1893,32 @@ Try selecting a single parcel.
1893 Region Not Found 1893 Region Not Found
1894 </message> 1894 </message>
1895 </alert> 1895 </alert>
1896 <alert modal="true" name="ParcelCanPlayMedia"> 1896 <alert modal="true" name="ParcelCanPlayMusic">
1897 <message name="message"> 1897 <message name="message">
1898 This location can play streaming media. 1898 This location wants to play streaming music.
1899Streaming media requires a fast Internet connection. 1899 (Requires a fast Internet connection.)
1900 1900
1901Play streaming media when available? 1901 Play streaming music now?
1902(You can change this option later under 1902 </message>
1903Preferences &gt; Audio &amp; Video.) 1903 <option name="PlayMusic">
1904 </message> 1904 Yes
1905 </option>
1906 <option name="No">
1907 No
1908 </option>
1909 </alert>
1910 <alert modal="true" name="ParcelCanPlayMedia">
1911 <message name="message">
1912 This location wants to play streaming media.
1913 (Requires a fast Internet connection.)
1914
1915 Play streaming media now?
1916 </message>
1905 <option name="PlayMedia"> 1917 <option name="PlayMedia">
1906 Play Media 1918 Yes
1907 </option> 1919 </option>
1908 <option name="Disable"> 1920 <option name="No">
1909 Disable 1921 No
1910 </option> 1922 </option>
1911 </alert> 1923 </alert>
1912 <alert modal="true" name="CannotDeedLandWaitingForServer"> 1924 <alert modal="true" name="CannotDeedLandWaitingForServer">