|
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 "musengclipsession.h" |
|
21 #include "musengclipsessionobserver.h" |
|
22 #include "musengsessionobserver.h" |
|
23 #include "musengmceoutsession.h" |
|
24 #include "musenglivesession.h" |
|
25 |
|
26 |
|
27 // SYSTEM |
|
28 /*#include <mcesession.h> |
|
29 #include <mcefilesource.h> |
|
30 #include <mcemediastream.h> |
|
31 #include <mcevideostream.h> |
|
32 #include <mceaudiostream.h> |
|
33 #include <mcertpsink.h> |
|
34 #include <mcedisplaysink.h> |
|
35 #include <mcespeakersink.h> |
|
36 #include <drmcommon.h> |
|
37 */ |
|
38 |
|
39 // CONSTANTS |
|
40 |
|
41 const TInt KMicroSecondsInOneSecond = 1000000; |
|
42 |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C CMusEngClipSession* CMusEngClipSession::NewL( |
|
49 const TDesC& aFileName, |
|
50 const TRect& aRect, |
|
51 MMusEngClipSessionObserver* aSessionObserver, |
|
52 TUint aSipProfileId ) |
|
53 { |
|
54 CMusEngClipSession* self = new( ELeave ) CMusEngClipSession( |
|
55 aSessionObserver, |
|
56 aRect, |
|
57 aSipProfileId ); |
|
58 CleanupStack::PushL( self ); |
|
59 self->ConstructL( aFileName ); |
|
60 CleanupStack::Pop( self ); |
|
61 return self; |
|
62 } |
|
63 |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 CMusEngClipSession::~CMusEngClipSession() |
|
70 { |
|
71 } |
|
72 |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C void CMusEngClipSession::ChangeClipL( const TDesC& aFileName ) |
|
79 { |
|
80 } |
|
81 |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // TODO: At the moment behavior of MCE is not known and all the FFWD commands |
|
85 // are only forwarded to MCE. |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void CMusEngClipSession::FastForwardL( TBool aUseFFWD ) |
|
89 { |
|
90 } |
|
91 |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // TODO: At the moment behavior of MCE is not known and all the FRWD commands |
|
95 // are only forwarded to MCE. |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 EXPORT_C void CMusEngClipSession::FastRewindL( TBool aUseFRWD ) |
|
99 { |
|
100 } |
|
101 |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 EXPORT_C TTimeIntervalSeconds CMusEngClipSession::PositionL() |
|
108 { |
|
109 } |
|
110 |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 EXPORT_C TTimeIntervalSeconds CMusEngClipSession::DurationL() |
|
117 { |
|
118 } |
|
119 |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 EXPORT_C void CMusEngClipSession::SetPositionL ( |
|
126 const TTimeIntervalSeconds& aPosition ) |
|
127 { |
|
128 } |
|
129 |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 // ----------------------------------------------------------------------------- |
|
134 // |
|
135 EXPORT_C void CMusEngClipSession::SetSessionObserver( |
|
136 MMusEngClipSessionObserver* aSessionObserver) |
|
137 { |
|
138 } |
|
139 |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 EXPORT_C void CMusEngClipSession::PlayL() |
|
146 { |
|
147 } |
|
148 |
|
149 |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 // ----------------------------------------------------------------------------- |
|
153 // |
|
154 EXPORT_C void CMusEngClipSession::PauseL() |
|
155 { |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 void CMusEngClipSession::CompleteSessionStructureL() |
|
164 { |
|
165 } |
|
166 |
|
167 |
|
168 // ----------------------------------------------------------------------------- |
|
169 // |
|
170 // ----------------------------------------------------------------------------- |
|
171 // |
|
172 CMusEngClipSession::CMusEngClipSession( |
|
173 MMusEngClipSessionObserver* aSessionObserver, |
|
174 const TRect& aRect, |
|
175 TUint aSipProfileId ) |
|
176 : CMusEngMceOutSession( aRect, aSipProfileId ) |
|
177 { |
|
178 } |
|
179 |
|
180 |
|
181 // ----------------------------------------------------------------------------- |
|
182 // |
|
183 // ----------------------------------------------------------------------------- |
|
184 // |
|
185 void CMusEngClipSession::ConstructL( const TDesC& aFileName ) |
|
186 { |
|
187 } |
|
188 |
|
189 |
|
190 // ----------------------------------------------------------------------------- |
|
191 // Check is file DRM protected. |
|
192 // |
|
193 // ----------------------------------------------------------------------------- |
|
194 // |
|
195 TBool CMusEngClipSession::IsProtectedFileL( const TDesC& aClipFile ) |
|
196 { |
|
197 } |
|
198 |
|
199 |
|
200 // ----------------------------------------------------------------------------- |
|
201 // If member file contains audio, add appropriate amount of audio streams to |
|
202 // session structure |
|
203 // ----------------------------------------------------------------------------- |
|
204 // |
|
205 void CMusEngClipSession::ConstructAudioStructureL() |
|
206 { |
|
207 } |
|
208 |
|
209 |