javauis/mmapi_akn/baseline/src/cmmavideourlplayerlivestreamdelegate.cpp
branchRCL_3
changeset 77 7cee158cb8cd
parent 71 d5e927d5853b
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
    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
   102     }
   105     }
   103     DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: StopL - ");
   106     DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: StopL - ");
   104 }
   107 }
   105 
   108 
   106 void CMMAVideoUrlPlayer::CMMAVideoUrlPlayerLiveStreamDelegate::GetMediaTime(TInt64* aMediaTime)
   109 void CMMAVideoUrlPlayer::CMMAVideoUrlPlayerLiveStreamDelegate::GetMediaTime(TInt64* aMediaTime)
   151         if (iActiveSchedulerWait->IsStarted())
   154         if (iActiveSchedulerWait->IsStarted())
   152         {
   155         {
   153             DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop");
   156             DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop");
   154             // calling PrepareDisplay() in the nick of time as this takes over the control of window and 
   157             // calling PrepareDisplay() in the nick of time as this takes over the control of window and 
   155             // any UI widget can't be drawn after this call at the prescribed area for video display.
   158             // 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
   156             iPlayer.PrepareDisplay();
   162             iPlayer.PrepareDisplay();
   157             iActiveSchedulerWait->AsyncStop();
   163             iActiveSchedulerWait->AsyncStop();
   158         }
   164         }
   159         if (err != KErrNone)
   165         if (err != KErrNone)
   160         {
   166         {