77 |
79 |
78 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
80 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
79 virtual void OpenFile64L( const RFile64& aMediaFile ); |
81 virtual void OpenFile64L( const RFile64& aMediaFile ); |
80 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
82 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
81 |
83 |
82 |
|
83 protected: |
84 protected: |
84 /* |
85 /* |
85 * C++ default constructor |
86 * C++ default constructor |
86 */ |
87 */ |
87 CMPXVideoPlaybackMode(); |
88 CMPXVideoPlaybackMode(); |
90 * the second phase constructor ConstructL to safely construct things |
91 * the second phase constructor ConstructL to safely construct things |
91 * that can leave |
92 * that can leave |
92 */ |
93 */ |
93 virtual void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
94 virtual void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
94 |
95 |
95 |
|
96 protected: |
96 protected: |
97 // |
97 // |
98 // Data |
98 // Data |
99 // |
99 // |
100 CMPXVideoPlaybackController* iVideoPlaybackCtlr; // not owned |
100 CMPXVideoPlaybackController* iVideoPlaybackCtlr; // not owned |
101 |
|
102 CMPXVideoPosterFrameSetter* iPosterFrameSetter; |
101 CMPXVideoPosterFrameSetter* iPosterFrameSetter; |
103 |
|
104 }; |
102 }; |
105 |
103 |
106 /*******************************************************/ |
104 /*******************************************************/ |
107 /* SUB CLASS DECLARATIONS */ |
105 /* SUB CLASS DECLARATIONS */ |
108 /*******************************************************/ |
106 /*******************************************************/ |
168 { |
166 { |
169 public: |
167 public: |
170 static CMPXVideoPlaybackMode* NewL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
168 static CMPXVideoPlaybackMode* NewL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
171 virtual ~CMPXProgressiveDLPlaybackMode(); |
169 virtual ~CMPXProgressiveDLPlaybackMode(); |
172 |
170 |
|
171 #ifdef USE_S60_DOWNLOAD_MANAGER |
|
172 |
173 inline virtual TInt GetMode(); |
173 inline virtual TInt GetMode(); |
174 void ConnectToDownloadL( CMPXCommand& aCmd ); |
174 void ConnectToDownloadL( CMPXCommand& aCmd ); |
175 void HandleOpenComplete(); |
175 void HandleOpenComplete(); |
176 void GetPdlStatusL( CMPXCommand& aCmd ); |
176 void GetPdlStatusL( CMPXCommand& aCmd ); |
177 void UpdateSeekPosition( TInt64& aPosition ); |
177 void UpdateSeekPosition( TInt64& aPosition ); |
178 inline TBool IsDownloadPaused(); |
178 inline TBool IsDownloadPaused(); |
|
179 void OpenFileL( const RFile& aMediaFile ); |
|
180 |
|
181 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
182 void OpenFile64L( const RFile64& aMediaFile ); |
|
183 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
184 |
|
185 #endif // USE_S60_DOWNLOAD_MANAGER |
179 |
186 |
180 private: |
187 private: |
181 |
|
182 void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
188 void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr ); |
183 |
189 |
|
190 #ifdef USE_S60_DOWNLOAD_MANAGER |
184 private: |
191 private: |
185 CMPXVideoDlMgrIf* iDlMgrIf; // owned |
192 CMPXVideoDlMgrIf* iDlMgrIf; // owned |
186 }; |
193 #endif // USE_S60_DOWNLOAD_MANAGER |
|
194 |
|
195 }; |
|
196 |
|
197 #ifdef USE_S60_DOWNLOAD_MANAGER |
|
198 |
|
199 inline |
|
200 TInt CMPXProgressiveDLPlaybackMode::GetMode() |
|
201 { |
|
202 MPX_DEBUG(_L("CMPXProgressiveDLPlaybackMode::GetMode()")); |
|
203 return EMPXVideoProgressiveDownload; |
|
204 } |
|
205 |
|
206 inline |
|
207 TBool CMPXProgressiveDLPlaybackMode::IsDownloadPaused() |
|
208 { |
|
209 return iDlMgrIf->IsDownloadPaused(); |
|
210 } |
|
211 |
|
212 #endif // USE_S60_DOWNLOAD_MANAGER |
187 |
213 |
188 // INLINE METHODS |
214 // INLINE METHODS |
189 |
215 |
190 inline |
216 inline |
191 TInt CMPXVideoPlaybackMode::GetMode() |
217 TInt CMPXVideoPlaybackMode::GetMode() |
215 MPX_DEBUG(_L("CMPXLiveStreamingPlaybackMode::GetMode()")); |
241 MPX_DEBUG(_L("CMPXLiveStreamingPlaybackMode::GetMode()")); |
216 return EMPXVideoLiveStreaming; |
242 return EMPXVideoLiveStreaming; |
217 } |
243 } |
218 |
244 |
219 inline |
245 inline |
220 TInt CMPXProgressiveDLPlaybackMode::GetMode() |
|
221 { |
|
222 MPX_DEBUG(_L("CMPXProgressiveDLPlaybackMode::GetMode()")); |
|
223 return EMPXVideoProgressiveDownload; |
|
224 } |
|
225 |
|
226 inline |
|
227 TBool CMPXVideoPlaybackMode::IsDownloadPaused() |
246 TBool CMPXVideoPlaybackMode::IsDownloadPaused() |
228 { |
247 { |
229 return EFalse; |
248 return EFalse; |
230 } |
249 } |
231 |
250 |
232 inline |
|
233 TBool CMPXProgressiveDLPlaybackMode::IsDownloadPaused() |
|
234 { |
|
235 return iDlMgrIf->IsDownloadPaused(); |
|
236 } |
|
237 |
251 |
238 #endif //_CMPXVIDEOPLAYBACKMODE_H_ |
252 #endif //_CMPXVIDEOPLAYBACKMODE_H_ |