videoplayback/videohelix/src/mpxvideoplaybackmode.cpp
branchRCL_3
changeset 10 112a725ff2c2
parent 9 5294c000a26d
child 11 8970fbd719ec
equal deleted inserted replaced
9:5294c000a26d 10:112a725ff2c2
    13 *
    13 *
    14 * Description:  This class plays local video file
    14 * Description:  This class plays local video file
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 20 %
    18 // Version : %version: e003sa33#21 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 //
    22 //
    23 //  INCLUDE FILES
    23 //  INCLUDE FILES
   359         const TPckgBuf<TBool> savePckg( EFalse );
   359         const TPckgBuf<TBool> savePckg( EFalse );
   360 
   360 
   361         HBufC8* tempBuf = NULL;
   361         HBufC8* tempBuf = NULL;
   362         TInt apMaxLen = 3;
   362         TInt apMaxLen = 3;
   363 
   363 
   364         HBufC8* accessPoint = HBufC8::NewLC( KMMFAccessPoint().Length() + apMaxLen );
   364         MPX_TRAPD( err,
   365         accessPoint->Des().Format( KMMFAccessPoint, iVideoPlaybackCtlr->iAccessPointId );
   365                    HBufC8* accessPoint = HBufC8::NewLC( KMMFAccessPoint().Length() + apMaxLen );
   366 
   366                    accessPoint->Des().Format( KMMFAccessPoint, iVideoPlaybackCtlr->iAccessPointId );
   367         tempBuf = HBufC8::NewLC( accessPoint->Length() );
   367 
   368         tempBuf->Des().Copy( accessPoint->Des() );
   368                    tempBuf = HBufC8::NewLC( accessPoint->Length() );
   369 
   369                    tempBuf->Des().Copy( accessPoint->Des() );
   370         if ( tempBuf )
   370 
   371         {
   371                    if ( tempBuf )
   372             iVideoPlaybackCtlr->iPlayer->CustomCommandSync( destinationPckg,
   372                    {
       
   373                        iVideoPlaybackCtlr->iPlayer->CustomCommandSync( destinationPckg,
   373                                                             EMMFROPControllerSetApplicationConfig,
   374                                                             EMMFROPControllerSetApplicationConfig,
   374                                                             tempBuf->Des(),
   375                                                             tempBuf->Des(),
   375                                                             savePckg );
   376                                                             savePckg );
   376         }
   377                    }
   377 
   378 
   378         CleanupStack::PopAndDestroy(2);   // accessPoint, tempBuf
   379                    CleanupStack::PopAndDestroy(2);   // accessPoint, tempBuf 
       
   380                 );
   379     }
   381     }
   380 }
   382 }
   381 
   383 
   382 //  ------------------------------------------------------------------------------------------------
   384 //  ------------------------------------------------------------------------------------------------
   383 //  CMPXStreamingPlaybackMode::CanPlayNow
   385 //  CMPXStreamingPlaybackMode::CanPlayNow
   398         {
   400         {
   399           //exit for live streaming
   401           //exit for live streaming
   400         }
   402         }
   401         else
   403         else
   402         {
   404         {
   403             playAllowed = !( iVideoPlaybackCtlr->IsVoiceCall() && IsNetworkMode2GL() );
   405             MPX_TRAPD( err,
       
   406             		   playAllowed = !( iVideoPlaybackCtlr->IsVoiceCall() && IsNetworkMode2GL() ) );
   404 
   407 
   405             if ( !playAllowed )
   408             if ( !playAllowed )
   406             {
   409             {
   407                 MPX_TRAPD( err,
   410                 MPX_TRAPD( err,
   408                     iVideoPlaybackCtlr->iState->SendErrorToViewL(
   411                     iVideoPlaybackCtlr->iState->SendErrorToViewL(