1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // USER |
|
20 #include "musengmcesession.h" |
|
21 #include "musengsessiondurationtimer.h" |
|
22 #include "musengoutsessionobserver.h" |
|
23 //#include "musengmceutils.h" |
|
24 //#include "musuid.hrh" |
|
25 #include "musengclipsessionobserver.h" |
|
26 |
|
27 // SYSTEM |
|
28 /* |
|
29 #include <mcemanager.h> |
|
30 #include <mcesession.h> |
|
31 #include <mcevideostream.h> |
|
32 #include <mceaudiostream.h> |
|
33 #include <mcertpsink.h> |
|
34 #include <mcedisplaysink.h> |
|
35 #include <mcespeakersink.h> |
|
36 #include <mcefilesource.h> |
|
37 */ |
|
38 |
|
39 const TInt KMusEngTimerInterval = 1000000; // 1 second |
|
40 const TInt KMusEngRtcpInactivityThreshold = 20; // seconds |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CMusEngMceSession::~CMusEngMceSession() |
|
47 { |
|
48 } |
|
49 |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C void CMusEngMceSession::TerminateL() |
|
56 { |
|
57 } |
|
58 |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 EXPORT_C void CMusEngMceSession::ReleaseInternalObservers() |
|
65 { |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // Returns estabilished session time. If not established return |
|
71 // value is < 0 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 EXPORT_C TTimeIntervalSeconds CMusEngMceSession::GetSessionTime() const |
|
75 { |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C TBool CMusEngMceSession::ConnectionActive() const |
|
84 { |
|
85 return EFalse; |
|
86 } |
|
87 |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 EXPORT_C void CMusEngMceSession::VolumeUpL() |
|
94 { |
|
95 } |
|
96 |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C void CMusEngMceSession::VolumeDownL() |
|
103 { |
|
104 } |
|
105 |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 EXPORT_C void CMusEngMceSession::EnableDisplayL( TBool aEnable ) |
|
112 { |
|
113 iDisplayEnabled = aEnable; |
|
114 } |
|
115 |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // Mutes playback of sended audio streams. Audio data is still streamed. |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 EXPORT_C void CMusEngMceSession::MuteL() |
|
122 { |
|
123 } |
|
124 |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // Unmutes playback of sended audio streams. |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 EXPORT_C void CMusEngMceSession::UnmuteL() |
|
131 { |
|
132 } |
|
133 |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 CMusEngMceSession::CMusEngMceSession( const TRect& aRect ) |
|
140 : CMusEngSession( aRect ), |
|
141 iSecondsFromLastRtcpReport ( 0 ) |
|
142 { |
|
143 } |
|
144 |
|
145 |
|
146 // ----------------------------------------------------------------------------- |
|
147 // |
|
148 // ----------------------------------------------------------------------------- |
|
149 // |
|
150 void CMusEngMceSession::ConstructL() |
|
151 { |
|
152 } |
|
153 |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 void CMusEngMceSession::RectChangedL() |
|
160 { |
|
161 } |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 // ----------------------------------------------------------------------------- |
|
167 // |
|
168 // ----------------------------------------------------------------------------- |
|
169 // |
|
170 TBool CMusEngMceSession::IsRtpcInactivityTimoutSupported() |
|
171 { |
|
172 return EFalse; |
|
173 } |
|
174 |
|
175 // ----------------------------------------------------------------------------- |
|
176 // Initializes session timer to current time |
|
177 // ----------------------------------------------------------------------------- |
|
178 // |
|
179 void CMusEngMceSession::InitializeSessionTimer() |
|
180 { |
|
181 } |
|
182 |
|
183 |
|
184 // ----------------------------------------------------------------------------- |
|
185 // |
|
186 // ----------------------------------------------------------------------------- |
|
187 // |
|
188 void CMusEngMceSession::UpdateTimerEvent() |
|
189 { |
|
190 } |
|
191 |
|
192 |
|
193 // ----------------------------------------------------------------------------- |
|
194 // Enables or disables all the speaker and rtp sinks of all the audio streams |
|
195 // ----------------------------------------------------------------------------- |
|
196 // |
|
197 void CMusEngMceSession::DoMuteL( TBool aMute ) |
|
198 { |
|
199 } |
|
200 |
|
201 |
|
202 // ----------------------------------------------------------------------------- |
|
203 // Changes volume of all speaker sinks in the session structure |
|
204 // ----------------------------------------------------------------------------- |
|
205 // |
|
206 void CMusEngMceSession::ChangeVolumeByOneL( TBool aIncreaseVolume ) |
|
207 { |
|
208 } |
|
209 |
|
210 |
|
211 // ----------------------------------------------------------------------------- |
|
212 // |
|
213 // ----------------------------------------------------------------------------- |
|
214 // |
|
215 void CMusEngMceSession::CheckClipEndL() |
|
216 { |
|
217 } |
|
218 |
|
219 |
|