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