videoplayback/videohelix/src/mpxvideoplayerutility.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 6 7d91903f795f
child 9 5294c000a26d
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    13 *
    13 *
    14 * Description:  This class is the interface between the playback plugin and RMMFController
    14 * Description:  This class is the interface between the playback plugin and RMMFController
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 15 %
    18 // Version : %version: 16 %
    19 
    19 
    20 
    20 
    21 #include <AudioPreference.h>
    21 #include <AudioPreference.h>
    22 #include <mmf/server/mmffile.h>
    22 #include <mmf/server/mmffile.h>
    23 #include <caf/caftypes.h>
    23 #include <caf/caftypes.h>
    77         iControllerEventMonitor->Cancel();
    77         iControllerEventMonitor->Cancel();
    78         delete iControllerEventMonitor;
    78         delete iControllerEventMonitor;
    79         iControllerEventMonitor = NULL;
    79         iControllerEventMonitor = NULL;
    80     }
    80     }
    81 
    81 
       
    82     if ( ! iSurfaceId.IsNull() )
       
    83     {
       
    84         MPX_TRAPD( err, SendSurfaceCommandL( EPbMsgVideoRemoveDisplayWindow ) );
       
    85         iSurfaceId = TSurfaceId::CreateNullId();
       
    86     }
       
    87 
    82     iController.Close();
    88     iController.Close();
    83     iDirectScreenAccessAbort = EFalse;
    89     iDirectScreenAccessAbort = EFalse;
    84 }
    90 }
    85 
    91 
    86 void CMpxVideoPlayerUtility::Reset()
    92 void CMpxVideoPlayerUtility::Reset()
   269     {
   275     {
   270         User::LeaveIfError(
   276         User::LeaveIfError(
   271                 iVideoPlayControllerCustomCommands.DirectScreenAccessEvent( EResumeDSA ) );
   277                 iVideoPlayControllerCustomCommands.DirectScreenAccessEvent( EResumeDSA ) );
   272 
   278 
   273         iDirectScreenAccessAbort = EFalse;
   279         iDirectScreenAccessAbort = EFalse;
       
   280     }
       
   281 }
       
   282 
       
   283 
       
   284 // -------------------------------------------------------------------------------------------------
       
   285 //   CMpxVideoPlayerUtility::SurfaceRemovedFromView()
       
   286 // -------------------------------------------------------------------------------------------------
       
   287 //
       
   288 void CMpxVideoPlayerUtility::SurfaceRemovedFromView()
       
   289 {
       
   290     MPX_ENTER_EXIT(_L("CMpxVideoPlayerUtility::SurfaceRemovedFromView()"));
       
   291     
       
   292     if ( ! iSurfaceId.IsNull() )
       
   293     {
       
   294         iSurfaceId = TSurfaceId::CreateNullId();
   274     }
   295     }
   275 }
   296 }
   276 
   297 
   277 TBool CMpxVideoPlayerUtility::AudioEnabledL() const
   298 TBool CMpxVideoPlayerUtility::AudioEnabledL() const
   278 {
   299 {