javauis/mmapi_akn/baseline/src/cmmavideourlplayerlivestreamdelegate.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    97         iPlayer.ChangeState(EPrefetched);
    97         iPlayer.ChangeState(EPrefetched);
    98 
    98 
    99         // Call stop instead of Pause as per the suggestions from helix
    99         // Call stop instead of Pause as per the suggestions from helix
   100         // Pause has no meaning for live streaming
   100         // Pause has no meaning for live streaming
   101         iPlayer.iController.Stop();
   101         iPlayer.iController.Stop();
   102 #ifdef RD_JAVA_NGA_ENABLED
       
   103         iPlayer.FreeClipRectForUI();
       
   104 #endif
       
   105     }
   102     }
   106     DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: StopL - ");
   103     DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: StopL - ");
   107 }
   104 }
   108 
   105 
   109 void CMMAVideoUrlPlayer::CMMAVideoUrlPlayerLiveStreamDelegate::GetMediaTime(TInt64* aMediaTime)
   106 void CMMAVideoUrlPlayer::CMMAVideoUrlPlayerLiveStreamDelegate::GetMediaTime(TInt64* aMediaTime)
   154         if (iActiveSchedulerWait->IsStarted())
   151         if (iActiveSchedulerWait->IsStarted())
   155         {
   152         {
   156             DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop");
   153             DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop");
   157             // calling PrepareDisplay() in the nick of time as this takes over the control of window and 
   154             // calling PrepareDisplay() in the nick of time as this takes over the control of window and 
   158             // any UI widget can't be drawn after this call at the prescribed area for video display.
   155             // any UI widget can't be drawn after this call at the prescribed area for video display.
   159 #ifdef RD_JAVA_NGA_ENABLED
       
   160 			iPlayer.GetClipRectFromUI();
       
   161 #endif
       
   162             iPlayer.PrepareDisplay();
   156             iPlayer.PrepareDisplay();
   163             iActiveSchedulerWait->AsyncStop();
   157             iActiveSchedulerWait->AsyncStop();
   164         }
   158         }
   165         if (err != KErrNone)
   159         if (err != KErrNone)
   166         {
   160         {