|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: LiveComm Videotelephony's Video Player Base Class |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "clcvtvideoplayerbase.h" |
|
19 #include "clcvtsession.h" |
|
20 |
|
21 |
|
22 CLcVtVideoPlayerBase::CLcVtVideoPlayerBase( |
|
23 CLcVtSession* avtSession, |
|
24 MLcAudioControl& aLcAudioControl ) : |
|
25 ivtSession( avtSession ), |
|
26 iLcAudioControl( aLcAudioControl ) |
|
27 { |
|
28 iIsWindowEnabled = ETrue; |
|
29 iWindowOrientation = MLcWindow::EPortrait; |
|
30 } |
|
31 |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CLcVtVideoPlayerBase::~CLcVtVideoPlayerBase() |
|
38 { |
|
39 } |
|
40 |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // From MLcVideoPlayer |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 #if 0 |
|
47 MLcVideoPlayer::TLcVideoPlayerState |
|
48 CLcVtVideoPlayerBase::LcVideoPlayerState() const |
|
49 { |
|
50 return MLcVideoPlayer::EUnavailable; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // From MLcVideoPlayer |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 TBool CLcVtVideoPlayerBase::LcIsPlayingL() |
|
58 { |
|
59 return EFalse; |
|
60 } |
|
61 #endif |
|
62 // ----------------------------------------------------------------------------- |
|
63 // From MLcVideoPlayer |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 void CLcVtVideoPlayerBase::LcPlayL( TLcVideoPlayerSource /*aSource*/ ) |
|
67 { |
|
68 // NOP |
|
69 __VTPRINT( DEBUG_GEN, "CLcVtVideoPlayerBase.LcPlayL" ) |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // From MLcVideoPlayer |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 void CLcVtVideoPlayerBase::LcPauseL() |
|
77 { |
|
78 // NOP |
|
79 __VTPRINT( DEBUG_GEN, "CLcVtVideoPlayerBase.LcPauseL" ) |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // From MLcVideoPlayer |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 MLcWindow* CLcVtVideoPlayerBase::LcWindow() |
|
87 { |
|
88 return this; |
|
89 } |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // From MLcVideoPlayer |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 MLcCameraControl* CLcVtVideoPlayerBase::LcCameraControl() |
|
96 { |
|
97 return NULL; |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // From MLcVideoPlayer |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 MLcSourceFileControl* CLcVtVideoPlayerBase::LcSourceFileControl() |
|
105 { |
|
106 return NULL; |
|
107 } |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // From MLcVideoPlayer |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 MLcDestinationFileControl* CLcVtVideoPlayerBase::LcDestinationFileControl() |
|
114 { |
|
115 return NULL; |
|
116 } |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // From MLcVideoPlayer |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 MLcAudioControl* CLcVtVideoPlayerBase::LcAudioControl() |
|
123 { |
|
124 return &iLcAudioControl; |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // From MLcVideoPlayer |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 MLcZoomControl* CLcVtVideoPlayerBase::LcZoomControl() |
|
132 { |
|
133 return NULL; |
|
134 } |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 // From MLcVideoPlayer |
|
138 // ----------------------------------------------------------------------------- |
|
139 // |
|
140 MLcBrightnessControl* CLcVtVideoPlayerBase::LcBrightnessControl() |
|
141 { |
|
142 return NULL; |
|
143 } |
|
144 |
|
145 // ----------------------------------------------------------------------------- |
|
146 // From MLcWindow |
|
147 // ----------------------------------------------------------------------------- |
|
148 // |
|
149 void CLcVtVideoPlayerBase::EnableLcWindowL( TBool aEnable ) |
|
150 { |
|
151 iIsWindowEnabled = aEnable; |
|
152 } |
|
153 |
|
154 // ----------------------------------------------------------------------------- |
|
155 // From MLcWindow |
|
156 // ----------------------------------------------------------------------------- |
|
157 // |
|
158 TBool CLcVtVideoPlayerBase::IsLcWindowEnabled() |
|
159 { |
|
160 return iIsWindowEnabled; |
|
161 } |
|
162 |
|
163 // ----------------------------------------------------------------------------- |
|
164 // From MLcWindow |
|
165 // ----------------------------------------------------------------------------- |
|
166 // |
|
167 void CLcVtVideoPlayerBase::SetLcWindowRectL( TRect aRect ) |
|
168 { |
|
169 iWindowRect = aRect; |
|
170 } |
|
171 |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // From MLcWindow |
|
175 // ----------------------------------------------------------------------------- |
|
176 // |
|
177 TRect CLcVtVideoPlayerBase::LcWindowRect() |
|
178 { |
|
179 return iWindowRect; |
|
180 } |
|
181 |
|
182 // ----------------------------------------------------------------------------- |
|
183 // From MLcWindow |
|
184 // ----------------------------------------------------------------------------- |
|
185 // |
|
186 void CLcVtVideoPlayerBase::SetLcWindowOrientationL( |
|
187 TLcWindowOrientation aOrientation ) |
|
188 { |
|
189 iWindowOrientation = aOrientation; |
|
190 } |
|
191 |
|
192 // ----------------------------------------------------------------------------- |
|
193 // From MLcWindow |
|
194 // ----------------------------------------------------------------------------- |
|
195 // |
|
196 MLcWindow::TLcWindowOrientation CLcVtVideoPlayerBase::LcWindowOrientationL() |
|
197 { |
|
198 return iWindowOrientation; |
|
199 } |