|
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: Implementation of Video playback view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // Version : %version: 30 % |
|
20 |
|
21 |
|
22 // Include Files |
|
23 #include <aknViewAppUi.h> |
|
24 #include <mpxplaybackutility.h> |
|
25 #include <mpxviewutility.h> |
|
26 #include <mpxcommandgeneraldefs.h> |
|
27 #include <mpxvideoplaybackviews.rsg> |
|
28 #include <mmf/common/mmferrors.h> |
|
29 #include <eikmenup.h> |
|
30 #include <AknTaskList.h> |
|
31 |
|
32 #include "mpxcommonvideoplaybackview.hrh" |
|
33 #include "mpxvideoplaybackuids.hrh" |
|
34 #include "mpxvideopdlplaybackview.h" |
|
35 #include "mpxvideoplaybackcontainer.h" |
|
36 #include "mpxvideoplaybackviewfiledetails.h" |
|
37 #include "mpxvideoplaybackuserinputhandler.h" |
|
38 #include <mpxvideoplaybackdefs.h> |
|
39 #include "mpxvideo_debug.h" |
|
40 |
|
41 // Member Functions |
|
42 |
|
43 // ------------------------------------------------------------------------------------------------- |
|
44 // CMPXVideoPdlPlaybackView::NewLC() |
|
45 // ------------------------------------------------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C CMPXVideoPdlPlaybackView* CMPXVideoPdlPlaybackView::NewLC() |
|
48 { |
|
49 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::NewLC()")); |
|
50 |
|
51 CMPXVideoPdlPlaybackView* self = new (ELeave) CMPXVideoPdlPlaybackView(); |
|
52 CleanupStack::PushL( self ); |
|
53 self->ConstructL(); |
|
54 return self; |
|
55 } |
|
56 |
|
57 // ------------------------------------------------------------------------------------------------- |
|
58 // CMPXVideoPdlPlaybackView::NewL() |
|
59 // ------------------------------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C CMPXVideoPdlPlaybackView* CMPXVideoPdlPlaybackView::NewL() |
|
62 { |
|
63 CMPXVideoPdlPlaybackView* self = CMPXVideoPdlPlaybackView::NewLC(); |
|
64 CleanupStack::Pop( self ); |
|
65 return self; |
|
66 } |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------- |
|
69 // CMPXVideoPdlPlaybackView::CMPXVideoPdlPlaybackView() |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // |
|
72 CMPXVideoPdlPlaybackView::CMPXVideoPdlPlaybackView() |
|
73 // note, CBase initialises all member variables to zero |
|
74 { |
|
75 } |
|
76 |
|
77 // ------------------------------------------------------------------------------------------------- |
|
78 // CMPXVideoPdlPlaybackView::ConstructL() |
|
79 // ------------------------------------------------------------------------------------------------- |
|
80 // |
|
81 void CMPXVideoPdlPlaybackView::ConstructL() |
|
82 { |
|
83 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::ConstructL()")); |
|
84 |
|
85 InitializeVideoPlaybackViewL(); |
|
86 |
|
87 iBlockInputsTimer = CPeriodic::NewL( CActive::EPriorityStandard ); |
|
88 |
|
89 iSyncClose = ETrue; |
|
90 } |
|
91 |
|
92 // ------------------------------------------------------------------------------------------------- |
|
93 // CMPXVideoPdlPlaybackView::~CMPXVideoPdlPlaybackView() |
|
94 // ------------------------------------------------------------------------------------------------- |
|
95 // |
|
96 CMPXVideoPdlPlaybackView::~CMPXVideoPdlPlaybackView() |
|
97 { |
|
98 MPX_DEBUG(_L("CMPXVideoPdlPlaybackView::~CMPXVideoPdlPlaybackView()")); |
|
99 |
|
100 if ( iBlockInputsTimer ) |
|
101 { |
|
102 iBlockInputsTimer->Cancel(); |
|
103 delete iBlockInputsTimer; |
|
104 iBlockInputsTimer = NULL; |
|
105 } |
|
106 } |
|
107 |
|
108 // ------------------------------------------------------------------------------------------------- |
|
109 // CMPXVideoPdlPlaybackView::Id() |
|
110 // ------------------------------------------------------------------------------------------------- |
|
111 // |
|
112 TUid CMPXVideoPdlPlaybackView::Id() const |
|
113 { |
|
114 return TUid::Uid( KMPXVIDEOPDLPLAYBACKVIEWUID ); |
|
115 } |
|
116 |
|
117 // ------------------------------------------------------------------------------------------------- |
|
118 // CMPXVideoPdlPlaybackView::ViewImplementationIdId() |
|
119 // ------------------------------------------------------------------------------------------------- |
|
120 // |
|
121 TUid CMPXVideoPdlPlaybackView::ViewImplementationId() const |
|
122 { |
|
123 return TUid::Uid( KMPXVIDEOPDLPLAYBACKVIEWPLUGINIMPLEMENTATIONUID ); |
|
124 } |
|
125 |
|
126 // ------------------------------------------------------------------------------------------------- |
|
127 // CMPXVideoPdlPlaybackView::CloseEmbeddedPlaybackViewL |
|
128 // ------------------------------------------------------------------------------------------------- |
|
129 // |
|
130 void CMPXVideoPdlPlaybackView::CloseEmbeddedPlaybackViewL() |
|
131 { |
|
132 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::CloseEmbeddedPlaybackViewL()"), |
|
133 _L("iPlaybackState = %d"), iPlaybackState ); |
|
134 |
|
135 // |
|
136 // If playback state is playing, pause playback |
|
137 // If playback state is stopped, close the plugin so file will be moved |
|
138 // |
|
139 if ( iPlaybackState == EPbStatePlaying ) |
|
140 { |
|
141 HandleCommandL( EMPXPbvCmdPause ); |
|
142 } |
|
143 else if ( iPlaybackState == EPbStateStopped ) |
|
144 { |
|
145 ActivateClosePlayerActiveObject(); |
|
146 } |
|
147 |
|
148 // |
|
149 // Embedded PDL |
|
150 // If we are in the foreground, bring the browser to the foreground |
|
151 // |
|
152 if ( ! BringUpBrowserL() ) |
|
153 { |
|
154 // |
|
155 // Browser cannot be found, exit application |
|
156 // |
|
157 AppUi()->RunAppShutter(); |
|
158 } |
|
159 } |
|
160 |
|
161 // ------------------------------------------------------------------------------------------------- |
|
162 // CMPXVideoPdlPlaybackView::BringUpBrowserL |
|
163 // ------------------------------------------------------------------------------------------------- |
|
164 // |
|
165 TBool CMPXVideoPdlPlaybackView::BringUpBrowserL() |
|
166 { |
|
167 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::BringUpBrowserL()")); |
|
168 |
|
169 TBool browserFound( EFalse ); |
|
170 |
|
171 RWsSession& wsSession=iEikonEnv->WsSession(); |
|
172 CAknTaskList* taskList = CAknTaskList::NewL( wsSession ); |
|
173 TApaTask task = taskList->FindRootApp( TUid::Uid( KBROWSERUID ) ); |
|
174 |
|
175 delete taskList; |
|
176 |
|
177 if ( task.Exists() ) |
|
178 { |
|
179 task.BringToForeground(); |
|
180 browserFound = ETrue; |
|
181 } |
|
182 |
|
183 return browserFound; |
|
184 } |
|
185 |
|
186 // ------------------------------------------------------------------------------------------------- |
|
187 // CMPXVideoPdlPlaybackView::RetrievePdlInformationL |
|
188 // ------------------------------------------------------------------------------------------------- |
|
189 // |
|
190 void CMPXVideoPdlPlaybackView::RetrievePdlInformationL() |
|
191 { |
|
192 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::RetrievePdlInformationL()")); |
|
193 |
|
194 CMPXCommand* cmd( CMPXCommand::NewL() ); |
|
195 CleanupStack::PushL( cmd ); |
|
196 |
|
197 cmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue ); |
|
198 cmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXCommandIdPlaybackPD ); |
|
199 cmd->SetTObjectValueL<TMPXPlaybackPdCommand>( KMPXCommandPlaybackGeneralType, |
|
200 EPbCmdGetPdStatus ); |
|
201 |
|
202 iPlaybackUtility->CommandL( *cmd ); |
|
203 |
|
204 // |
|
205 // Parse the PDL information |
|
206 // |
|
207 iPdlState = cmd->ValueTObjectL<TMPXPlaybackPdDownloadState>( KMPXCommandPlaybackPDState ); |
|
208 TInt downloadedBytes = cmd->ValueTObjectL<TInt>( KMPXCommandPlaybackPDDownloadedBytes ); |
|
209 iDownloadSize = cmd->ValueTObjectL<TInt>( KMPXCommandPlaybackPDTotalBytes ); |
|
210 |
|
211 MPX_DEBUG(_L(" PDL State = %d, current size = %d, total size = %d"), |
|
212 iPdlState, downloadedBytes, iDownloadSize ); |
|
213 |
|
214 CleanupStack::PopAndDestroy( cmd ); |
|
215 |
|
216 if ( iContainer ) |
|
217 { |
|
218 // |
|
219 // Check for a saved download. |
|
220 // The download size and downloaded bytes will be set to 100 so |
|
221 // the download progress bar will show 100% |
|
222 // |
|
223 if ( iPdlState == EPbDlStateNotDownloading || iPdlState == EPbDlStateDownloadCompleted ) |
|
224 { |
|
225 iDownloadSize = 100; |
|
226 downloadedBytes = 100; |
|
227 } |
|
228 |
|
229 iContainer->HandleEventL( EMPXControlCmdSetDownloadSize, iDownloadSize ); |
|
230 iContainer->HandleEventL( EMPXControlCmdDownloadUpdated, downloadedBytes ); |
|
231 } |
|
232 } |
|
233 |
|
234 // ------------------------------------------------------------------------------------------------- |
|
235 // CMPXVideoPdlPlaybackView::HandlePluginErrorL() |
|
236 // ------------------------------------------------------------------------------------------------- |
|
237 // |
|
238 void CMPXVideoPdlPlaybackView::HandlePluginErrorL( TInt aError ) |
|
239 { |
|
240 MPX_DEBUG( |
|
241 _L("CMPXVideoPdlPlaybackView::HandlePluginErrorL() aError = %d"), aError ); |
|
242 |
|
243 switch ( aError ) |
|
244 { |
|
245 case KErrAbort: |
|
246 { |
|
247 // |
|
248 // For progressive download mode, this indicates that the file |
|
249 // could not be played until the entire file is downloaded. |
|
250 // |
|
251 DisplayInfoMessageL( R_MPX_VIDEO_PDL_WAIT_DL_COMPLETE_MSG, ETrue ); |
|
252 ClosePlaybackViewWithErrorL(); |
|
253 |
|
254 break; |
|
255 } |
|
256 case KErrEof: |
|
257 { |
|
258 // |
|
259 // For progressive download mode, this indicates that the file |
|
260 // has timed out waiting for more data to be downloaded |
|
261 // |
|
262 DisplayErrorMessageL( R_MPX_VIDEO_PDL_ALL_CONTENT_PLAYED_MSG ); |
|
263 ClosePlaybackViewWithErrorL(); |
|
264 |
|
265 break; |
|
266 } |
|
267 case KErrNotSupported: |
|
268 case KErrUnknown: |
|
269 case KErrMMDecoder: |
|
270 case KErrCorrupt: |
|
271 case KErrTooBig: |
|
272 { |
|
273 // |
|
274 // We have received an error for an invalid clip. |
|
275 // If the download is complete, display the invalid |
|
276 // clip message. If the download is in progress, |
|
277 // we do not know if the clip is invalid yet. |
|
278 // Show message to wait for more data. |
|
279 // |
|
280 if ( iPdlState >= EPbDlStateNotDownloading ) |
|
281 { |
|
282 DisplayErrorMessageL( R_MPX_PDL_MORE_DATA_NEEDED_MSG ); |
|
283 } |
|
284 else |
|
285 { |
|
286 DisplayErrorMessageL( R_MPX_VIDEO_INVALID_CLIP ); |
|
287 } |
|
288 |
|
289 ClosePlaybackViewWithErrorL(); |
|
290 |
|
291 break; |
|
292 } |
|
293 default: |
|
294 { |
|
295 CMPXVideoBasePlaybackView::HandlePluginErrorL( aError ); |
|
296 } |
|
297 } |
|
298 } |
|
299 |
|
300 // ----------------------------------------------------------------------------- |
|
301 // CMPXVideoPdlPlaybackView::HandlePdlStateChangeL |
|
302 // ----------------------------------------------------------------------------- |
|
303 // |
|
304 void CMPXVideoPdlPlaybackView::HandlePdlStateChangeL( TInt aState ) |
|
305 { |
|
306 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::HandlePdlStateChangeL()"), |
|
307 _L("aState = %d"), aState ); |
|
308 |
|
309 TMPXPlaybackPdDownloadState prevPdlState = iPdlState; |
|
310 iPdlState = (TMPXPlaybackPdDownloadState)aState; |
|
311 |
|
312 switch ( aState ) |
|
313 { |
|
314 case EPbDlStateDownloadError: |
|
315 case EPbDlStateDownloadCanceled: |
|
316 { |
|
317 HandleCommandL( EMPXPbvCmdStop ); |
|
318 ClosePlaybackViewWithErrorL(); |
|
319 break; |
|
320 } |
|
321 case EPbDlStateDownloading: |
|
322 { |
|
323 if ( prevPdlState == EPbDlStateDownloadPaused ) |
|
324 { |
|
325 if ( iContainer ) |
|
326 { |
|
327 iContainer->HandleEventL( EMPXControlCmdClearDownloadPaused ); |
|
328 } |
|
329 } |
|
330 |
|
331 break; |
|
332 } |
|
333 case EPbDlStateDownloadPaused: |
|
334 { |
|
335 // |
|
336 // If we are buffering, display information message and pause |
|
337 // |
|
338 if ( iPlaybackState == EPbStateBuffering ) |
|
339 { |
|
340 HandleCommandL( EMPXPbvCmdPause ); |
|
341 |
|
342 DisplayInfoMessageL( R_MPX_VIDEO_PDL_ALL_CONTENT_PLAYED_MSG, ETrue ); |
|
343 HandleCommandL( EAknSoftkeyBack ); |
|
344 } |
|
345 else |
|
346 { |
|
347 // |
|
348 // Download has been paused, let container show |
|
349 // the download paused icon |
|
350 // |
|
351 if ( iContainer ) |
|
352 { |
|
353 iContainer->HandleEventL( EMPXControlCmdSetDownloadPaused ); |
|
354 } |
|
355 } |
|
356 |
|
357 break; |
|
358 } |
|
359 case EPbDlStateDownloadCompleted: |
|
360 { |
|
361 if ( iContainer ) |
|
362 { |
|
363 iContainer->HandleEventL( EMPXControlCmdDownloadComplete, iDownloadSize ); |
|
364 } |
|
365 |
|
366 break; |
|
367 } |
|
368 case EPbDlStateNotDownloading: |
|
369 { |
|
370 break; |
|
371 } |
|
372 } |
|
373 } |
|
374 |
|
375 // ------------------------------------------------------------------------------------------------- |
|
376 // CMPXVideoPdlPlaybackView::HandleStoppedStateL |
|
377 // ------------------------------------------------------------------------------------------------- |
|
378 // |
|
379 void CMPXVideoPdlPlaybackView::HandleStoppedStateL() |
|
380 { |
|
381 MPX_DEBUG(_L("CMPXVideoPdlPlaybackView::HandleStoppedStateL()")); |
|
382 |
|
383 if ( iPdlReloading ) |
|
384 { |
|
385 iPdlReloading = EFalse; |
|
386 } |
|
387 else |
|
388 { |
|
389 ClosePlaybackViewL(); |
|
390 } |
|
391 } |
|
392 |
|
393 // ------------------------------------------------------------------------------------------------- |
|
394 // CMPXVideoPdlPlaybackView::HandleBufferingStateL |
|
395 // ------------------------------------------------------------------------------------------------- |
|
396 // |
|
397 void CMPXVideoPdlPlaybackView::HandleBufferingStateL() |
|
398 { |
|
399 MPX_DEBUG(_L("CMPXVideoPdlPlaybackView::HandleBufferingStateL()")); |
|
400 |
|
401 // |
|
402 // If the download is paused and the state is buffering, |
|
403 // display information message |
|
404 // |
|
405 if ( iPdlState == EPbDlStateDownloadPaused ) |
|
406 { |
|
407 HandleCommandL( EMPXPbvCmdPause ); |
|
408 |
|
409 DisplayInfoMessageL( R_MPX_VIDEO_PDL_ALL_CONTENT_PLAYED_MSG, ETrue ); |
|
410 HandleCommandL( EAknSoftkeyBack ); |
|
411 } |
|
412 } |
|
413 |
|
414 // ------------------------------------------------------------------------------------------------- |
|
415 // CMPXVideoPdlPlaybackView::SendPdlCustomCommandL() |
|
416 // ------------------------------------------------------------------------------------------------- |
|
417 // |
|
418 void CMPXVideoPdlPlaybackView::SendPdlCustomCommandL( TMPXPlaybackPdCommand aCustomCmd ) |
|
419 { |
|
420 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::SendPdlCustomCommandL"), |
|
421 _L("aCustomCmd = %d"), aCustomCmd ); |
|
422 |
|
423 CMPXCommand* cmd = CMPXCommand::NewL(); |
|
424 CleanupStack::PushL( cmd ); |
|
425 |
|
426 cmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue ); |
|
427 cmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXCommandIdPlaybackPD ); |
|
428 cmd->SetTObjectValueL<TMPXPlaybackPdCommand>( KMPXCommandPlaybackGeneralType, aCustomCmd ); |
|
429 |
|
430 iPlaybackUtility->CommandL( *cmd ); |
|
431 |
|
432 CleanupStack::PopAndDestroy( cmd ); |
|
433 } |
|
434 |
|
435 // ------------------------------------------------------------------------------------------------- |
|
436 // CMPXVideoPdlPlaybackView::ClosePlaybackViewWithErrorL() |
|
437 // ------------------------------------------------------------------------------------------------- |
|
438 // |
|
439 void CMPXVideoPdlPlaybackView::ClosePlaybackViewWithErrorL() |
|
440 { |
|
441 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::ClosePlaybackViewWithErrorL")); |
|
442 |
|
443 // |
|
444 // An error has been processed, set the playback state to Stopped and close the view |
|
445 // |
|
446 iPlaybackState = EPbStateStopped; |
|
447 |
|
448 ClosePlaybackViewL(); |
|
449 } |
|
450 |
|
451 // ------------------------------------------------------------------------------------------------- |
|
452 // CMPXVideoPdlPlaybackView::HandleInitializingStateL() |
|
453 // ------------------------------------------------------------------------------------------------- |
|
454 // |
|
455 void CMPXVideoPdlPlaybackView::HandleInitializingStateL( TMPXPlaybackState aLastState ) |
|
456 { |
|
457 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::HandleInitializingStateL()"), |
|
458 _L("aLastState = %d"), aLastState ); |
|
459 |
|
460 // |
|
461 // For PDL view, reset the container and controls for new download |
|
462 // |
|
463 DoHandleInitializingStateL( aLastState ); |
|
464 |
|
465 // |
|
466 // User inputs should not be blocked since the new download is initializing |
|
467 // |
|
468 ResetPdlUserInputs(); |
|
469 } |
|
470 |
|
471 // ------------------------------------------------------------------------------------------------- |
|
472 // CMPXVideoPdlPlaybackView::SendWindowCommandL() |
|
473 // ------------------------------------------------------------------------------------------------- |
|
474 // |
|
475 void CMPXVideoPdlPlaybackView::SendWindowCommandL( TMPXVideoPlaybackCommand aCmd ) |
|
476 { |
|
477 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::SendWindowCommandL()"), |
|
478 _L("aCmd = %d"), aCmd ); |
|
479 |
|
480 CMPXVideoBasePlaybackView::SendWindowCommandL( aCmd ); |
|
481 |
|
482 if ( aCmd == EPbCmdHandleForeground ) |
|
483 { |
|
484 // |
|
485 // If user inputs are blocked, start timer to unblock them |
|
486 // |
|
487 if ( iUserInputsBlocked ) |
|
488 { |
|
489 if ( iBlockInputsTimer->IsActive() ) |
|
490 { |
|
491 iBlockInputsTimer->Cancel(); |
|
492 } |
|
493 |
|
494 // |
|
495 // Set timer to unblock user inputs after 1 second |
|
496 // The message from the download manager should take less than 1 second |
|
497 // |
|
498 iBlockInputsTimer->Start( |
|
499 1000000, |
|
500 0, |
|
501 TCallBack( CMPXVideoPdlPlaybackView::HandleBlockInputsTimeOut, this ) ); |
|
502 } |
|
503 } |
|
504 else if ( aCmd == EPbCmdHandleBackground && ! IsAppInFrontL() ) |
|
505 { |
|
506 // |
|
507 // Block all inputs when PDL view is sent to full background |
|
508 // Commands will be enabled when new command is received from LWP |
|
509 // |
|
510 iUserInputsBlocked = ETrue; |
|
511 iContainer->UserInputHandler()->BlockPdlUserInputs( iUserInputsBlocked ); |
|
512 } |
|
513 } |
|
514 |
|
515 // ------------------------------------------------------------------------------------------------- |
|
516 // CMPXVideoPdlPlaybackView::HandlePdlReloadComplete() |
|
517 // ------------------------------------------------------------------------------------------------- |
|
518 // |
|
519 void CMPXVideoPdlPlaybackView::HandlePdlReloadComplete() |
|
520 { |
|
521 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::HandlePdlReloadComplete()")); |
|
522 |
|
523 // |
|
524 // User inputs should not be blocked since the new PDL command is complete |
|
525 // |
|
526 ResetPdlUserInputs(); |
|
527 } |
|
528 |
|
529 // ------------------------------------------------------------------------------------------------- |
|
530 // CMPXVideoPdlPlaybackView::ResetPdlUserInputs() |
|
531 // ------------------------------------------------------------------------------------------------- |
|
532 // |
|
533 void CMPXVideoPdlPlaybackView::ResetPdlUserInputs() |
|
534 { |
|
535 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::ResetPdlUserInputs()")); |
|
536 |
|
537 iUserInputsBlocked = EFalse; |
|
538 iContainer->UserInputHandler()->BlockPdlUserInputs( iUserInputsBlocked ); |
|
539 |
|
540 if ( iBlockInputsTimer->IsActive() ) |
|
541 { |
|
542 iBlockInputsTimer->Cancel(); |
|
543 } |
|
544 } |
|
545 |
|
546 // ------------------------------------------------------------------------------------------------- |
|
547 // CMPXVideoPdlPlaybackView::HandleBlockInputsTimeOut() |
|
548 // ------------------------------------------------------------------------------------------------- |
|
549 // |
|
550 TInt CMPXVideoPdlPlaybackView::HandleBlockInputsTimeOut( TAny* aPtr ) |
|
551 { |
|
552 MPX_DEBUG(_L("CMPXVideoPdlPlaybackView::HandleBlockInputsTimeOut()")); |
|
553 |
|
554 static_cast<CMPXVideoPdlPlaybackView*>(aPtr)->DoHandleBlockInputsTimeOut(); |
|
555 return KErrNone; |
|
556 } |
|
557 |
|
558 // ------------------------------------------------------------------------------------------------- |
|
559 // CMPXVideoPdlPlaybackView::DoHandleBlockInputsTimeOut() |
|
560 // ------------------------------------------------------------------------------------------------- |
|
561 // |
|
562 void CMPXVideoPdlPlaybackView::DoHandleBlockInputsTimeOut() |
|
563 { |
|
564 // |
|
565 // Check if we are reloading due to the message from the Download Manager |
|
566 // If we are still reloading, keep the user inputs blocked. |
|
567 // If not, unblock the user inputs |
|
568 // |
|
569 if ( ! iPdlReloading ) |
|
570 { |
|
571 // |
|
572 // Reload message not received, unblock inputs |
|
573 // |
|
574 ResetPdlUserInputs(); |
|
575 } |
|
576 } |
|
577 |
|
578 // EOF |