diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llmedia/llmediamoviebase.cpp | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llmedia/llmediamoviebase.cpp')
-rw-r--r-- | linden/indra/llmedia/llmediamoviebase.cpp | 222 |
1 files changed, 222 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediamoviebase.cpp b/linden/indra/llmedia/llmediamoviebase.cpp new file mode 100644 index 0000000..b24e7ab --- /dev/null +++ b/linden/indra/llmedia/llmediamoviebase.cpp | |||
@@ -0,0 +1,222 @@ | |||
1 | /** | ||
2 | * @file llmediamoviebase.cpp | ||
3 | * @brief LLMedia support - base class. | ||
4 | * | ||
5 | * Copyright (c) 2005-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #include "linden_common.h" | ||
29 | |||
30 | #include "llmediamoviebase.h" | ||
31 | #include "llmediaimplquicktime.h" | ||
32 | |||
33 | LLMediaMovieBase::LLMediaMovieBase() | ||
34 | { | ||
35 | |||
36 | } | ||
37 | |||
38 | /////////////////////////////////////////////////////////////////////////////// | ||
39 | // factory method based on explicit media type | ||
40 | LLMediaMovieBase* LLMediaMovieBase::make( const MediaType mediaTypeIn, S32 width_pixels, S32 height_pixels ) | ||
41 | { | ||
42 | #if LL_QUICKTIME_ENABLED | ||
43 | if ( mediaTypeIn == QuickTime ) | ||
44 | { | ||
45 | return new LLMediaImplQuickTime (); | ||
46 | } | ||
47 | else | ||
48 | #endif | ||
49 | |||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | /////////////////////////////////////////////////////////////////////////////// | ||
54 | // | ||
55 | BOOL | ||
56 | LLMediaMovieBase:: | ||
57 | play () | ||
58 | { | ||
59 | // build event and emit it | ||
60 | LLMediaEvent event ( 0, "" ); | ||
61 | mMediaEventEmitter.update ( &LLMediaObserver::onPlay, event ); | ||
62 | |||
63 | return TRUE; | ||
64 | } | ||
65 | |||
66 | /////////////////////////////////////////////////////////////////////////////// | ||
67 | // | ||
68 | BOOL | ||
69 | LLMediaMovieBase:: | ||
70 | pause () | ||
71 | { | ||
72 | LLMediaEvent event ( 0, "" ); | ||
73 | mMediaEventEmitter.update ( &LLMediaObserver::onPause, event ); | ||
74 | |||
75 | return TRUE; | ||
76 | } | ||
77 | |||
78 | /////////////////////////////////////////////////////////////////////////////// | ||
79 | // | ||
80 | BOOL | ||
81 | LLMediaMovieBase:: | ||
82 | stop () | ||
83 | { | ||
84 | LLMediaEvent event ( 0, "" ); | ||
85 | mMediaEventEmitter.update ( &LLMediaObserver::onStop, event ); | ||
86 | |||
87 | return TRUE; | ||
88 | } | ||
89 | |||
90 | /////////////////////////////////////////////////////////////////////////////// | ||
91 | // | ||
92 | BOOL | ||
93 | LLMediaMovieBase:: | ||
94 | loop ( S32 howMany ) | ||
95 | { | ||
96 | return TRUE; | ||
97 | }; | ||
98 | |||
99 | /////////////////////////////////////////////////////////////////////////////// | ||
100 | // | ||
101 | void LLMediaMovieBase::setAutoScaled ( BOOL autoScaledIn ) | ||
102 | { | ||
103 | } | ||
104 | |||
105 | /////////////////////////////////////////////////////////////////////////////// | ||
106 | // | ||
107 | BOOL | ||
108 | LLMediaMovieBase:: | ||
109 | setVolume ( F32 volumeIn ) | ||
110 | { | ||
111 | return TRUE; | ||
112 | } | ||
113 | |||
114 | /////////////////////////////////////////////////////////////////////////////// | ||
115 | // | ||
116 | F32 | ||
117 | LLMediaMovieBase:: | ||
118 | getVolume () | ||
119 | { | ||
120 | return ( F32 ) 0.0f; | ||
121 | } | ||
122 | |||
123 | /////////////////////////////////////////////////////////////////////////////// | ||
124 | // | ||
125 | BOOL | ||
126 | LLMediaMovieBase:: | ||
127 | isIdle () const | ||
128 | { | ||
129 | return FALSE; | ||
130 | } | ||
131 | |||
132 | /////////////////////////////////////////////////////////////////////////////// | ||
133 | // | ||
134 | BOOL | ||
135 | LLMediaMovieBase:: | ||
136 | isBuffering () const | ||
137 | { | ||
138 | return FALSE; | ||
139 | } | ||
140 | |||
141 | /////////////////////////////////////////////////////////////////////////////// | ||
142 | // | ||
143 | BOOL | ||
144 | LLMediaMovieBase:: | ||
145 | isError () const | ||
146 | { | ||
147 | return FALSE; | ||
148 | } | ||
149 | |||
150 | /////////////////////////////////////////////////////////////////////////////// | ||
151 | // | ||
152 | BOOL | ||
153 | LLMediaMovieBase:: | ||
154 | isLoaded () const | ||
155 | { | ||
156 | return TRUE; | ||
157 | } | ||
158 | |||
159 | /////////////////////////////////////////////////////////////////////////////// | ||
160 | // | ||
161 | BOOL | ||
162 | LLMediaMovieBase:: | ||
163 | isStopped () const | ||
164 | { | ||
165 | return FALSE; | ||
166 | } | ||
167 | |||
168 | /////////////////////////////////////////////////////////////////////////////// | ||
169 | // | ||
170 | BOOL | ||
171 | LLMediaMovieBase:: | ||
172 | isPaused () const | ||
173 | { | ||
174 | return FALSE; | ||
175 | } | ||
176 | |||
177 | /////////////////////////////////////////////////////////////////////////////// | ||
178 | // | ||
179 | BOOL | ||
180 | LLMediaMovieBase:: | ||
181 | isPlaying () const | ||
182 | { | ||
183 | return TRUE; | ||
184 | } | ||
185 | |||
186 | /////////////////////////////////////////////////////////////////////////////// | ||
187 | // | ||
188 | BOOL | ||
189 | LLMediaMovieBase:: | ||
190 | isLooping () const | ||
191 | { | ||
192 | return FALSE; | ||
193 | } | ||
194 | |||
195 | /////////////////////////////////////////////////////////////////////////////// | ||
196 | // | ||
197 | BOOL | ||
198 | LLMediaMovieBase:: | ||
199 | seek ( F64 time ) | ||
200 | { | ||
201 | return TRUE; | ||
202 | } | ||
203 | |||
204 | /////////////////////////////////////////////////////////////////////////////// | ||
205 | // | ||
206 | F64 | ||
207 | LLMediaMovieBase:: | ||
208 | getTime () const | ||
209 | { | ||
210 | F64 result = 0; | ||
211 | return result; | ||
212 | } | ||
213 | |||
214 | /////////////////////////////////////////////////////////////////////////////// | ||
215 | // | ||
216 | F64 | ||
217 | LLMediaMovieBase:: | ||
218 | getMediaDuration () const | ||
219 | { | ||
220 | F64 result = 0; | ||
221 | return result; | ||
222 | } | ||