equal
deleted
inserted
replaced
169 |
169 |
170 // CMMASourceStream will notify with ReadCompleted |
170 // CMMASourceStream will notify with ReadCompleted |
171 DEBUG("MMA::CMMAAnimationPlayer::PrefetchL -"); |
171 DEBUG("MMA::CMMAAnimationPlayer::PrefetchL -"); |
172 } |
172 } |
173 |
173 |
174 void CMMAAnimationPlayer::StartL() |
174 void CMMAAnimationPlayer::StartL(TBool aPostEvent) |
175 { |
175 { |
176 DEBUG("MMA::CMMAAnimationPlayer::StartL +"); |
176 DEBUG("MMA::CMMAAnimationPlayer::StartL +"); |
177 |
177 |
178 // If end of media has been reached, then |
178 // If end of media has been reached, then |
179 // start from beginning |
179 // start from beginning |
181 { |
181 { |
182 iEndReached = EFalse; |
182 iEndReached = EFalse; |
183 iViewer->SetAnimationFrame(0); |
183 iViewer->SetAnimationFrame(0); |
184 iMediaTime = 0; |
184 iMediaTime = 0; |
185 } |
185 } |
186 PostLongEvent(CMMAPlayerEvent::EStarted, iMediaTime); |
186 if (aPostEvent) |
|
187 { |
|
188 PostLongEvent(CMMAPlayerEvent::EStarted, iMediaTime); |
|
189 } |
187 |
190 |
188 // process current frame |
191 // process current frame |
189 ProcessCurrentFrameL(); |
192 ProcessCurrentFrameL(); |
190 |
193 |
191 // progress to next frame (start playback) only if rate is not zero |
194 // progress to next frame (start playback) only if rate is not zero |