equal
deleted
inserted
replaced
142 KNullDesC8, |
142 KNullDesC8, |
143 prioritySettings)); |
143 prioritySettings)); |
144 iStreamHandler->PrepareL(); |
144 iStreamHandler->PrepareL(); |
145 } |
145 } |
146 |
146 |
147 void CMMAAudioStreamPlayer::StartL() |
147 void CMMAAudioStreamPlayer::StartL(TBool aPostEvent) |
148 { |
148 { |
149 // If the player is in Prefetched state then it is implied that it has read "KMMAStreamRequestBufferSize" |
149 // If the player is in Prefetched state then it is implied that it has read "KMMAStreamRequestBufferSize" |
150 // and it can be played |
150 // and it can be played |
151 if (iState == EPrefetched) |
151 if (iState == EPrefetched) |
152 { |
152 { |
153 |
153 |
154 TInt64 time; |
154 if (aPostEvent) |
155 GetMediaTime(&time); |
155 { |
156 |
156 TInt64 time; |
157 // inform java side |
157 GetMediaTime(&time); |
158 PostLongEvent(CMMAPlayerEvent::EStarted, time); |
158 // inform java side |
|
159 PostLongEvent(CMMAPlayerEvent::EStarted, time); |
|
160 } |
159 |
161 |
160 // go to started state |
162 // go to started state |
161 ChangeState(EStarted); |
163 ChangeState(EStarted); |
162 |
164 |
163 PostActionCompleted(KErrNone); // java start return |
165 PostActionCompleted(KErrNone); // java start return |
211 { |
213 { |
212 iRepeatCount++; |
214 iRepeatCount++; |
213 |
215 |
214 if (iRepeatForever || iRepeatCount < iRepeatNumberOfTimes) |
216 if (iRepeatForever || iRepeatCount < iRepeatNumberOfTimes) |
215 { |
217 { |
216 StartL(); |
218 StartL(ETrue); |
217 } |
219 } |
218 else |
220 else |
219 { |
221 { |
220 iRepeatCount = 0; |
222 iRepeatCount = 0; |
221 } |
223 } |