videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp
changeset 62 0e1e938beb1a
parent 52 e3cecb93e76a
--- a/videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp	Thu Sep 02 20:28:16 2010 +0300
+++ b/videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp	Fri Sep 17 08:30:05 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 
-// Version : %version: 65 %
+// Version : %version: 66 %
 
 
 //
@@ -167,6 +167,9 @@
 
     iDrmHelper = CMpxVideoDrmHelper::NewL();
 
+    iCallDetector = CMPXCallDetector::NewL( this );
+    iCallDetector->RequestNotification();
+
     iSavedPosition = 0;
     iViewActivated  = EFalse;
 }
@@ -291,6 +294,14 @@
     delete iSeekingState;
     delete iStoppedState;
 
+    if ( iCallDetector )
+    {
+        iCallDetector->Cancel();
+
+        delete iCallDetector;
+        iCallDetector = NULL;
+    }
+
     if ( iPlaybackMode )
     {
         delete iPlaybackMode;
@@ -2551,4 +2562,13 @@
 
     iPlaybackMode->HandleFrameReady(aError);
 }
+
+void CMPXVideoPlaybackController::CallDetectedL()
+{
+    MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::CallDetectedL"));
+
+    // Pause playback
+    DoHandleCommandL( EPbCmdPause );
+}
+
 // End of file