16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // USER |
19 // USER |
20 #include "musengclipsession.h" |
20 #include "musengclipsession.h" |
21 |
21 #include "musengclipsessionobserver.h" |
22 |
22 #include "musengsessionobserver.h" |
23 // ----------------------------------------------------------------------------- |
23 #include "musengmceoutsession.h" |
24 // |
24 #include "musenglivesession.h" |
25 // ----------------------------------------------------------------------------- |
25 |
26 // |
26 |
27 CMusEngClipSession* CMusEngClipSession::NewL( |
27 // SYSTEM |
28 const TRect& aRect ) |
28 /*#include <mcesession.h> |
29 { |
29 #include <mcefilesource.h> |
30 CMusEngClipSession* self = new( ELeave ) CMusEngClipSession( aRect ); |
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 ); |
31 CleanupStack::PushL( self ); |
58 CleanupStack::PushL( self ); |
32 self->ConstructL(); |
59 self->ConstructL( aFileName ); |
33 CleanupStack::Pop( self ); |
60 CleanupStack::Pop( self ); |
34 return self; |
61 return self; |
35 } |
62 } |
36 |
63 |
37 |
64 |
41 // |
68 // |
42 CMusEngClipSession::~CMusEngClipSession() |
69 CMusEngClipSession::~CMusEngClipSession() |
43 { |
70 { |
44 } |
71 } |
45 |
72 |
46 // ----------------------------------------------------------------------------- |
73 |
47 // |
74 // ----------------------------------------------------------------------------- |
48 // ----------------------------------------------------------------------------- |
75 // |
49 // |
76 // ----------------------------------------------------------------------------- |
50 CMusEngClipSession::CMusEngClipSession( const TRect& aRect ) |
77 // |
51 : CMusEngMceOutSession( aRect ) |
78 EXPORT_C void CMusEngClipSession::ChangeClipL( const TDesC& aFileName ) |
52 { |
79 { |
53 } |
80 } |
54 |
81 |
55 |
82 |
56 // ----------------------------------------------------------------------------- |
83 // ----------------------------------------------------------------------------- |
57 // |
84 // TODO: At the moment behavior of MCE is not known and all the FFWD commands |
58 // ----------------------------------------------------------------------------- |
85 // are only forwarded to MCE. |
59 // |
86 // ----------------------------------------------------------------------------- |
60 void CMusEngClipSession::ConstructL() |
87 // |
61 { |
88 EXPORT_C void CMusEngClipSession::FastForwardL( TBool aUseFFWD ) |
62 CMusEngMceOutSession::ConstructL(); |
89 { |
63 } |
90 } |
64 |
91 |
65 |
92 |
66 // End of file |
93 // ----------------------------------------------------------------------------- |
67 |
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 |