aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lloverlaybar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lloverlaybar.cpp')
-rw-r--r--linden/indra/newview/lloverlaybar.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp
index 6191a01..db4422d 100644
--- a/linden/indra/newview/lloverlaybar.cpp
+++ b/linden/indra/newview/lloverlaybar.cpp
@@ -38,7 +38,7 @@
38#include "lloverlaybar.h" 38#include "lloverlaybar.h"
39 39
40#include "aoremotectrl.h" 40#include "aoremotectrl.h"
41#include "audioengine.h" 41#include "llaudioengine.h"
42#include "llrender.h" 42#include "llrender.h"
43#include "llagent.h" 43#include "llagent.h"
44#include "llbutton.h" 44#include "llbutton.h"
@@ -63,7 +63,7 @@
63#include "llvoiceclient.h" 63#include "llvoiceclient.h"
64#include "llvoavatar.h" 64#include "llvoavatar.h"
65#include "llvoiceremotectrl.h" 65#include "llvoiceremotectrl.h"
66#include "llwebbrowserctrl.h" 66#include "llmediactrl.h"
67#include "llwindlightremotectrl.h" 67#include "llwindlightremotectrl.h"
68#include "llselectmgr.h" 68#include "llselectmgr.h"
69 69
@@ -75,13 +75,14 @@ LLOverlayBar *gOverlayBar = NULL;
75 75
76extern S32 MENU_BAR_HEIGHT; 76extern S32 MENU_BAR_HEIGHT;
77 77
78 78//awfixme
79/*
79class LLTitleObserver 80class LLTitleObserver
80 : public LLMediaObserver 81 : public LLMediaObserver
81{ 82{
82public: 83public:
83 void init(std::string url); 84 void init(std::string url);
84 /*virtual*/ void onMediaTitleChange(const EventType& event_in); 85 *//*virtual*//* void onMediaTitleChange(const EventType& event_in);
85private: 86private:
86 LLMediaBase* mMediaSource; 87 LLMediaBase* mMediaSource;
87}; 88};
@@ -120,7 +121,7 @@ void LLTitleObserver::onMediaTitleChange(const EventType& event_in)
120 chat.mText = playing_msg; 121 chat.mText = playing_msg;
121 LLFloaterChat::addChat(chat, FALSE, FALSE); 122 LLFloaterChat::addChat(chat, FALSE, FALSE);
122} 123}
123 124*/
124 125
125// 126//
126// Functions 127// Functions
@@ -445,11 +446,11 @@ void LLOverlayBar::toggleMediaPlay(void*)
445 } 446 }
446 447
447 448
448 if (LLViewerMedia::isMediaPaused()) 449 if (LLViewerParcelMedia::getStatus() == LLViewerMediaImpl::MEDIA_PAUSED)
449 { 450 {
450 LLViewerParcelMedia::start(); 451 LLViewerParcelMedia::start();
451 } 452 }
452 else if(LLViewerMedia::isMediaPlaying()) 453 else if(LLViewerParcelMedia::getStatus() == LLViewerMediaImpl::MEDIA_PLAYING)
453 { 454 {
454 LLViewerParcelMedia::pause(); 455 LLViewerParcelMedia::pause();
455 } 456 }
@@ -490,7 +491,7 @@ void LLOverlayBar::toggleMusicPlay(void*)
490 // if ( gAudiop->isInternetStreamPlaying() == 0 ) 491 // if ( gAudiop->isInternetStreamPlaying() == 0 )
491 { 492 {
492 gAudiop->startInternetStream(parcel->getMusicURL()); 493 gAudiop->startInternetStream(parcel->getMusicURL());
493 sTitleObserver.init(parcel->getMusicURL()); 494//awfixme sTitleObserver.init(parcel->getMusicURL());
494 } 495 }
495 } 496 }
496 } 497 }