diff options
author | McCabe Maxsted | 2009-02-14 23:12:10 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-14 23:12:10 -0700 |
commit | e6cda8b59b9b52617a4c40a9ae6111403a3dba2f (patch) | |
tree | 634a47b5ff5c6a908111da0bb59b39c433cb7dc1 /linden | |
parent | develop.py should now work again under windows (diff) | |
download | meta-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)
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 4 | ||||
-rw-r--r-- | linden/indra/newview/llviewerparcelmedia.cpp | 8 | ||||
-rw-r--r-- | linden/indra/newview/llviewerparcelmgr.cpp | 20 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/alerts.xml | 36 |
4 files changed, 46 insertions, 22 deletions
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 | ||
385 | void callback_play_media(S32 option, void* data) | 385 | void 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 | ||
1693 | void optionally_start_music(const std::string& music_url) | 1693 | void 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 | |||
1715 | void 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 |
1710 | void LLViewerParcelMgr::processParcelAccessListReply(LLMessageSystem *msg, void **user) | 1728 | void 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. |
1899 | Streaming media requires a fast Internet connection. | 1899 | (Requires a fast Internet connection.) |
1900 | 1900 | ||
1901 | Play streaming media when available? | 1901 | Play streaming music now? |
1902 | (You can change this option later under | 1902 | </message> |
1903 | Preferences > Audio & 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"> |