equal
deleted
inserted
replaced
29 |
29 |
30 #ifdef _DEBUG // Needed only in ASSER_DEBUG statements. |
30 #ifdef _DEBUG // Needed only in ASSER_DEBUG statements. |
31 _LIT(KPanicMethod, "method not found"); |
31 _LIT(KPanicMethod, "method not found"); |
32 #endif |
32 #endif |
33 |
33 |
34 CMMAPlayer::~CMMAPlayer() |
34 EXPORT_C CMMAPlayer::~CMMAPlayer() |
35 { |
35 { |
36 DEBUG("CMMAPlayer::~CMMAPlayer()"); |
36 DEBUG("CMMAPlayer::~CMMAPlayer()"); |
37 |
37 |
38 iSourceStreams.ResetAndDestroy(); |
38 iSourceStreams.ResetAndDestroy(); |
39 if (iControls.Count() > 0) |
39 if (iControls.Count() > 0) |
44 delete iDurationUpdater; |
44 delete iDurationUpdater; |
45 delete iContentType; |
45 delete iContentType; |
46 } |
46 } |
47 |
47 |
48 |
48 |
49 CMMAPlayer::CMMAPlayer(): |
49 EXPORT_C CMMAPlayer::CMMAPlayer(): |
50 iRepeatNumberOfTimes(0), |
50 iRepeatNumberOfTimes(0), |
51 iRepeatForever(EFalse), |
51 iRepeatForever(EFalse), |
52 iRepeatCount(0), |
52 iRepeatCount(0), |
53 iDuration(KTimeUnknown), |
53 iDuration(KTimeUnknown), |
54 iState(EUnrealized) |
54 iState(EUnrealized) |
152 |
152 |
153 ChangeState(EClosed); |
153 ChangeState(EClosed); |
154 } |
154 } |
155 |
155 |
156 |
156 |
157 void CMMAPlayer::GetDuration(TInt64* aDuration) |
157 EXPORT_C void CMMAPlayer::GetDuration(TInt64* aDuration) |
158 { |
158 { |
159 DEBUG("MMA::CMMAPlayer::GetDuration "); |
159 DEBUG("MMA::CMMAPlayer::GetDuration "); |
160 *aDuration = iDuration; |
160 *aDuration = iDuration; |
161 } |
161 } |
162 |
162 |
186 { |
186 { |
187 DEBUG("MMA::CMMAPlayer::ContentType "); |
187 DEBUG("MMA::CMMAPlayer::ContentType "); |
188 return iContentType; |
188 return iContentType; |
189 } |
189 } |
190 |
190 |
191 void CMMAPlayer::SetPlayerListenerObjectL(jobject aListenerObject, |
191 EXPORT_C void CMMAPlayer::SetPlayerListenerObjectL(jobject aListenerObject, |
192 JNIEnv* aJni, |
192 JNIEnv* aJni, |
193 MMMAEventPoster* aEventPoster) |
193 MMMAEventPoster* aEventPoster) |
194 { |
194 { |
195 DEBUG("MMA::CMMAPlayer::SetPlayerListenerObjectL +"); |
195 DEBUG("MMA::CMMAPlayer::SetPlayerListenerObjectL +"); |
196 iListenerObject = aListenerObject; |
196 iListenerObject = aListenerObject; |
427 iEventPoster->PostEvent(iActionCompletedEvent, |
427 iEventPoster->PostEvent(iActionCompletedEvent, |
428 CMMAEvent::ENotifyPriority); |
428 CMMAEvent::ENotifyPriority); |
429 } |
429 } |
430 |
430 |
431 |
431 |
432 void CMMAPlayer::ChangeState(TPlayerState aState) |
432 EXPORT_C void CMMAPlayer::ChangeState(TPlayerState aState) |
433 { |
433 { |
434 iState = aState; |
434 iState = aState; |
435 DEBUG_INT("MMA::CMMAPlayer::ChangeState - iStateListeners count is %d", iStateListeners.Count()); |
435 DEBUG_INT("MMA::CMMAPlayer::ChangeState - iStateListeners count is %d", iStateListeners.Count()); |
436 for (TInt i(0); i<iStateListeners.Count(); i++) |
436 for (TInt i(0); i<iStateListeners.Count(); i++) |
437 { |
437 { |