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