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.h | |
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.h')
-rw-r--r-- | linden/indra/llmedia/llmediamoviebase.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediamoviebase.h b/linden/indra/llmedia/llmediamoviebase.h new file mode 100644 index 0000000..e9617c0 --- /dev/null +++ b/linden/indra/llmedia/llmediamoviebase.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /** | ||
2 | * @file llmediamoviebase.h | ||
3 | * @brief LLMedia support - intermediate base class, for media types | ||
4 | * that want movie-style controls (i.e play/pause and volume) | ||
5 | * | ||
6 | * Copyright (c) 2005-2007, Linden Research, Inc. | ||
7 | * | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
9 | * to you under the terms of the GNU General Public License, version 2.0 | ||
10 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
11 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
12 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
13 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
14 | * | ||
15 | * There are special exceptions to the terms and conditions of the GPL as | ||
16 | * it is applied to this Source Code. View the full text of the exception | ||
17 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
18 | * online at http://secondlife.com/developers/opensource/flossexception | ||
19 | * | ||
20 | * By copying, modifying or distributing this software, you acknowledge | ||
21 | * that you have read and understood your obligations described above, | ||
22 | * and agree to abide by those obligations. | ||
23 | * | ||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
26 | * COMPLETENESS OR PERFORMANCE. | ||
27 | */ | ||
28 | |||
29 | // header guard | ||
30 | #ifndef llmediamoviebase_h | ||
31 | #define llmediamoviebase_h | ||
32 | |||
33 | #include "llmediabase.h" | ||
34 | |||
35 | class LLMediaMovieBase : public LLMediaBase | ||
36 | { | ||
37 | public: | ||
38 | LLMediaMovieBase (); | ||
39 | |||
40 | // do the right thing with dtor | ||
41 | virtual ~LLMediaMovieBase () | ||
42 | { | ||
43 | }; | ||
44 | |||
45 | /////////////////////////////////////////////////////////////////////////////// | ||
46 | // factory method based on explicit media type | ||
47 | static LLMediaMovieBase* make ( const MediaType mediaTypeIn, S32 width_pixels, S32 height_pixels ); | ||
48 | |||
49 | /////////////////////////////////////////////////////////////////////////////// | ||
50 | // public interface: | ||
51 | |||
52 | // transport controls | ||
53 | virtual BOOL stop (); | ||
54 | virtual BOOL play (); | ||
55 | virtual BOOL loop ( S32 howMany ); | ||
56 | virtual BOOL pause (); | ||
57 | virtual BOOL seek ( F64 time ); | ||
58 | |||
59 | // audio levels | ||
60 | virtual BOOL setVolume ( F32 volumeIn ); | ||
61 | virtual F32 getVolume (); | ||
62 | |||
63 | // status | ||
64 | virtual BOOL isIdle () const; | ||
65 | virtual BOOL isBuffering () const; | ||
66 | virtual BOOL isError () const; | ||
67 | virtual BOOL isLoaded () const; | ||
68 | virtual BOOL isStopped () const; | ||
69 | virtual BOOL isPaused () const; | ||
70 | virtual BOOL isPlaying () const; | ||
71 | virtual BOOL isLooping () const; | ||
72 | virtual F64 getTime () const; | ||
73 | |||
74 | // media data | ||
75 | virtual void setAutoScaled ( BOOL autoScaledIn ); | ||
76 | virtual F64 getMediaDuration () const; | ||
77 | }; | ||
78 | |||
79 | |||
80 | #endif // llmediamoviebase_h | ||