diff options
Diffstat (limited to 'linden/indra/newview/llviewerparcelmedia.h')
-rw-r--r-- | linden/indra/newview/llviewerparcelmedia.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewerparcelmedia.h b/linden/indra/newview/llviewerparcelmedia.h index 1898870..0f1e85c 100644 --- a/linden/indra/newview/llviewerparcelmedia.h +++ b/linden/indra/newview/llviewerparcelmedia.h | |||
@@ -33,18 +33,22 @@ | |||
33 | #ifndef LLVIEWERPARCELMEDIA_H | 33 | #ifndef LLVIEWERPARCELMEDIA_H |
34 | #define LLVIEWERPARCELMEDIA_H | 34 | #define LLVIEWERPARCELMEDIA_H |
35 | 35 | ||
36 | #include "llmediabase.h" | 36 | #include "llviewermedia.h" |
37 | 37 | ||
38 | class LLMessageSystem; | 38 | class LLMessageSystem; |
39 | class LLParcel; | 39 | class LLParcel; |
40 | class LLViewerParcelMediaNavigationObserver; | ||
41 | |||
40 | 42 | ||
41 | // This class understands land parcels, network traffic, LSL media | 43 | // This class understands land parcels, network traffic, LSL media |
42 | // transport commands, and talks to the LLViewerMedia class to actually | 44 | // transport commands, and talks to the LLViewerMedia class to actually |
43 | // do playback. It allows us to remove code from LLViewerParcelMgr. | 45 | // do playback. It allows us to remove code from LLViewerParcelMgr. |
44 | class LLViewerParcelMedia | 46 | class LLViewerParcelMedia : public LLViewerMediaObserver |
45 | { | 47 | { |
48 | LOG_CLASS(LLViewerParcelMedia); | ||
46 | public: | 49 | public: |
47 | static void initClass(); | 50 | static void initClass(); |
51 | static void cleanupClass(); | ||
48 | 52 | ||
49 | static void update(LLParcel* parcel); | 53 | static void update(LLParcel* parcel); |
50 | // called when the agent's parcel has a new URL, or the agent has | 54 | // called when the agent's parcel has a new URL, or the agent has |
@@ -60,17 +64,38 @@ class LLViewerParcelMedia | |||
60 | static void start(); | 64 | static void start(); |
61 | // restart after pause - no need for all the setup | 65 | // restart after pause - no need for all the setup |
62 | 66 | ||
67 | static void focus(bool focus); | ||
68 | |||
63 | static void seek(F32 time); | 69 | static void seek(F32 time); |
64 | // jump to timecode time | 70 | // jump to timecode time |
65 | 71 | ||
66 | static LLMediaBase::EStatus getStatus(); | 72 | static LLViewerMediaImpl::EMediaStatus getStatus(); |
73 | static std::string getMimeType(); | ||
74 | static viewer_media_t getParcelMedia(); | ||
67 | 75 | ||
68 | static void processParcelMediaCommandMessage( LLMessageSystem *msg, void ** ); | 76 | static void processParcelMediaCommandMessage( LLMessageSystem *msg, void ** ); |
69 | static void processParcelMediaUpdate( LLMessageSystem *msg, void ** ); | 77 | static void processParcelMediaUpdate( LLMessageSystem *msg, void ** ); |
78 | static void sendMediaNavigateMessage(const std::string& url); | ||
79 | |||
80 | // inherited from LLViewerMediaObserver | ||
81 | virtual void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event); | ||
70 | 82 | ||
71 | public: | 83 | public: |
72 | static S32 sMediaParcelLocalID; | 84 | static S32 sMediaParcelLocalID; |
73 | static LLUUID sMediaRegionID; | 85 | static LLUUID sMediaRegionID; |
86 | // HACK: this will change with Media on a Prim | ||
87 | static viewer_media_t sMediaImpl; | ||
88 | }; | ||
89 | |||
90 | |||
91 | class LLViewerParcelMediaNavigationObserver | ||
92 | { | ||
93 | public: | ||
94 | std::string mCurrentURL; | ||
95 | bool mFromMessage; | ||
96 | |||
97 | // void onNavigateComplete( const EventType& event_in ); | ||
98 | |||
74 | }; | 99 | }; |
75 | 100 | ||
76 | #endif | 101 | #endif |