aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lloverlaybar.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-14 12:04:49 +0200
committerArmin Weatherwax2010-09-23 15:38:25 +0200
commit35df5441d3e2789663532c948731aff3a1e04728 (patch)
treeac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/lloverlaybar.cpp
parentChanged version to Experimental 2010.09.18 (diff)
downloadmeta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz
llmediaplugins first step
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 }