equal
deleted
inserted
replaced
149 iPlayer.ChangeState(EStarted); |
149 iPlayer.ChangeState(EStarted); |
150 } |
150 } |
151 if (iActiveSchedulerWait->IsStarted()) |
151 if (iActiveSchedulerWait->IsStarted()) |
152 { |
152 { |
153 DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop"); |
153 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 |
|
155 // any UI widget can't be drawn after this call at the prescribed area for video display. |
|
156 iPlayer.PrepareDisplay(); |
154 iActiveSchedulerWait->AsyncStop(); |
157 iActiveSchedulerWait->AsyncStop(); |
155 } |
158 } |
156 if (err != KErrNone) |
159 if (err != KErrNone) |
157 { |
160 { |
158 DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete Error Inform Parent"); |
161 DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete Error Inform Parent"); |
164 { |
167 { |
165 DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoPrepareComplete +"); |
168 DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoPrepareComplete +"); |
166 // going to prefetch state, after Play |
169 // going to prefetch state, after Play |
167 // KMMFEventCategoryVideoLoadingComplete event will be received |
170 // KMMFEventCategoryVideoLoadingComplete event will be received |
168 |
171 |
169 if (err == KErrNone) |
172 |
170 { |
|
171 iPlayer.PrepareDisplay(); |
|
172 } |
|
173 |
173 |
174 // For live streams: complete prefetch. |
174 // For live streams: complete prefetch. |
175 // if activeschedulerwait is started, then |
175 // if activeschedulerwait is started, then |
176 // do not complete prefetch as we are here |
176 // do not complete prefetch as we are here |
177 // as a result of calling StartL and not for |
177 // as a result of calling StartL and not for |