videoplayback/videoplaybackviews/src/mpxvideoplaybackview.cpp
branchRCL_3
changeset 18 baf439b22ddd
parent 12 7f2b2a65da29
equal deleted inserted replaced
16:67eb01668b0e 18:baf439b22ddd
    14 * Description:  Implementation of Video playback view
    14 * Description:  Implementation of Video playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 20 %
    19 // Version : %version: 22 %
    20 
    20 
    21 
    21 
    22 //  Include Files
    22 //  Include Files
    23 #include <aknViewAppUi.h>
    23 #include <aknViewAppUi.h>
    24 #include <mpxplaybackutility.h>
    24 #include <mpxplaybackutility.h>
    78 void CMPXVideoPlaybackView::ConstructL()
    78 void CMPXVideoPlaybackView::ConstructL()
    79 {
    79 {
    80     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackView::ConstructL()"));
    80     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackView::ConstructL()"));
    81 
    81 
    82     InitializeVideoPlaybackViewL();
    82     InitializeVideoPlaybackViewL();
       
    83 
       
    84     iSyncClose = EFalse;
    83 }
    85 }
    84 
    86 
    85 // -------------------------------------------------------------------------------------------------
    87 // -------------------------------------------------------------------------------------------------
    86 //   CMPXVideoPlaybackView::~CMPXVideoPlaybackView()
    88 //   CMPXVideoPlaybackView::~CMPXVideoPlaybackView()
    87 // -------------------------------------------------------------------------------------------------
    89 // -------------------------------------------------------------------------------------------------
   147         {
   149         {
   148             DisplayErrorMessageL( R_MPX_VIDEO_INVALID_CLIP );
   150             DisplayErrorMessageL( R_MPX_VIDEO_INVALID_CLIP );
   149             HandleClosePlaybackViewL();
   151             HandleClosePlaybackViewL();
   150             break;
   152             break;
   151         }
   153         }
   152 
       
   153         case KErrMMInvalidProtocol:
   154         case KErrMMInvalidProtocol:
   154         case KErrMMInvalidURL:
   155         case KErrMMInvalidURL:
   155         case KErrArgument:
   156         case KErrArgument:
   156         {
   157         {
   157             DisplayErrorMessageL(R_MPX_INVALID_URL);
   158             DisplayErrorMessageL(R_MPX_INVALID_URL);
   158             HandleClosePlaybackViewL();
   159             HandleClosePlaybackViewL();
   159             break;
   160             break;
   160         }
   161         }
   161 
       
   162         case KErrSessionClosed:
   162         case KErrSessionClosed:
   163         {
   163         {
   164             if ( iFileDetails->iPlaybackMode != EMPXVideoLiveStreaming )
   164             DisplayErrorMessageL( R_MPX_RESOURCE_LOST );
   165             {
       
   166                 DisplayErrorMessageL( R_MPX_RESOURCE_LOST );
       
   167             }
       
   168             HandleClosePlaybackViewL();
   165             HandleClosePlaybackViewL();
   169             break;
   166             break;
   170         }
   167         }
   171         case KErrTimedOut:
   168         case KErrTimedOut:
   172         {
   169         {
   195             break;
   192             break;
   196         }
   193         }
   197         default:
   194         default:
   198         {
   195         {
   199             CMPXVideoBasePlaybackView::HandlePluginErrorL( aError );
   196             CMPXVideoBasePlaybackView::HandlePluginErrorL( aError );
   200 
       
   201             break;
   197             break;
   202         }
   198         }
   203     }
   199     }
   204 }
   200 }
   205 
   201 
   233 void CMPXVideoPlaybackView::HandleInitializingStateL( TMPXPlaybackState aLastState )
   229 void CMPXVideoPlaybackView::HandleInitializingStateL( TMPXPlaybackState aLastState )
   234 {
   230 {
   235     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackView::HandleInitializingStateL()"),
   231     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackView::HandleInitializingStateL()"),
   236                    _L("aLastState = %d"), aLastState );
   232                    _L("aLastState = %d"), aLastState );
   237 
   233 
   238     //
   234     DoHandleInitializingStateL( aLastState );
   239     //  For multi item playlists, reset the container and controls for next
       
   240     //  item in playlist
       
   241     //
       
   242     if ( IsMultiItemPlaylist() )
       
   243     {
       
   244         DoHandleInitializingStateL( aLastState );
       
   245     }
       
   246 }
   235 }
   247 
   236 
   248 // EOF
   237 // EOF