aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/llmediamoviebase.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llmedia/llmediamoviebase.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-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.cpp234
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
38LLMediaMovieBase::LLMediaMovieBase()
39{
40
41}
42
43///////////////////////////////////////////////////////////////////////////////
44// factory method based on explicit media type
45LLMediaMovieBase* 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//
67BOOL
68LLMediaMovieBase::
69play ()
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//
80BOOL
81LLMediaMovieBase::
82pause ()
83{
84 LLMediaEvent event ( 0, "" );
85 mMediaEventEmitter.update ( &LLMediaObserver::onPause, event );
86
87 return TRUE;
88}
89
90///////////////////////////////////////////////////////////////////////////////
91//
92BOOL
93LLMediaMovieBase::
94stop ()
95{
96 LLMediaEvent event ( 0, "" );
97 mMediaEventEmitter.update ( &LLMediaObserver::onStop, event );
98
99 return TRUE;
100}
101
102///////////////////////////////////////////////////////////////////////////////
103//
104BOOL
105LLMediaMovieBase::
106loop ( S32 howMany )
107{
108 return TRUE;
109};
110
111///////////////////////////////////////////////////////////////////////////////
112//
113void LLMediaMovieBase::setAutoScaled ( BOOL autoScaledIn )
114{
115}
116
117///////////////////////////////////////////////////////////////////////////////
118//
119BOOL
120LLMediaMovieBase::
121setVolume ( F32 volumeIn )
122{
123 return TRUE;
124}
125
126///////////////////////////////////////////////////////////////////////////////
127//
128F32
129LLMediaMovieBase::
130getVolume ()
131{
132 return ( F32 ) 0.0f;
133}
134
135///////////////////////////////////////////////////////////////////////////////
136//
137BOOL
138LLMediaMovieBase::
139isIdle () const
140{
141 return FALSE;
142}
143
144///////////////////////////////////////////////////////////////////////////////
145//
146BOOL
147LLMediaMovieBase::
148isBuffering () const
149{
150 return FALSE;
151}
152
153///////////////////////////////////////////////////////////////////////////////
154//
155BOOL
156LLMediaMovieBase::
157isError () const
158{
159 return FALSE;
160}
161
162///////////////////////////////////////////////////////////////////////////////
163//
164BOOL
165LLMediaMovieBase::
166isLoaded () const
167{
168 return TRUE;
169}
170
171///////////////////////////////////////////////////////////////////////////////
172//
173BOOL
174LLMediaMovieBase::
175isStopped () const
176{
177 return FALSE;
178}
179
180///////////////////////////////////////////////////////////////////////////////
181//
182BOOL
183LLMediaMovieBase::
184isPaused () const
185{
186 return FALSE;
187}
188
189///////////////////////////////////////////////////////////////////////////////
190//
191BOOL
192LLMediaMovieBase::
193isPlaying () const
194{
195 return TRUE;
196}
197
198///////////////////////////////////////////////////////////////////////////////
199//
200BOOL
201LLMediaMovieBase::
202isLooping () const
203{
204 return FALSE;
205}
206
207///////////////////////////////////////////////////////////////////////////////
208//
209BOOL
210LLMediaMovieBase::
211seek ( F64 time )
212{
213 return TRUE;
214}
215
216///////////////////////////////////////////////////////////////////////////////
217//
218F64
219LLMediaMovieBase::
220getTime () const
221{
222 F64 result = 0;
223 return result;
224}
225
226///////////////////////////////////////////////////////////////////////////////
227//
228F64
229LLMediaMovieBase::
230getMediaDuration () const
231{
232 F64 result = 0;
233 return result;
234}