equal
deleted
inserted
replaced
313 iClientList->SendMsgL( |
313 iClientList->SendMsgL( |
314 TMPXPlaybackMessage( |
314 TMPXPlaybackMessage( |
315 TMPXPlaybackMessage::EInitializeComplete, |
315 TMPXPlaybackMessage::EInitializeComplete, |
316 0, |
316 0, |
317 EFalse)); |
317 EFalse)); |
318 |
318 |
319 if ( iPluginHandler->PlayerFound() ) |
319 if ( iPluginHandler->PlayerFound() ) |
320 { |
320 { |
321 iPluginUid = iPluginHandler->Plugin()->Uid(); |
321 iPluginUid = iPluginHandler->Plugin()->Uid(); |
322 } |
322 } |
323 |
323 |
324 RArray<TMPXAttribute> dummy; |
324 RArray<TMPXAttribute> dummy; |
325 CleanupClosePushL( dummy ); |
325 CleanupClosePushL( dummy ); |
326 dummy.AppendL( KMPXMediaGeneralUri ); // dummy attribute to get |
326 dummy.AppendL( KMPXMediaGeneralUri ); // dummy attribute to get |
982 SetPlayerActivated(EFalse); |
982 SetPlayerActivated(EFalse); |
983 iClientList->SendMsgL( |
983 iClientList->SendMsgL( |
984 TMPXPlaybackMessage( |
984 TMPXPlaybackMessage( |
985 TMPXPlaybackMessage::EStateChanged, iState, aError )); |
985 TMPXPlaybackMessage::EStateChanged, iState, aError )); |
986 if ( KErrDied == aError || |
986 if ( KErrDied == aError || |
987 KErrAccessDenied == aError ) |
987 KErrAccessDenied == aError || |
|
988 KErrInUse == aError ) |
988 { |
989 { |
989 iPluginState = EPbStateNotInitialised; |
990 iPluginState = EPbStateNotInitialised; |
990 // fixed |
991 // fixed |
991 iAutoResumeHandler->HandlePlaybackComplete(aError); |
992 iAutoResumeHandler->HandlePlaybackComplete(aError); |
992 iAutoResumeHandler->HandlePlaybackStateChange(iState); |
993 iAutoResumeHandler->HandlePlaybackStateChange(iState); |
1474 //Assumption: we take duration==0 to mean "live streaming" |
1475 //Assumption: we take duration==0 to mean "live streaming" |
1475 // Check if position is not past the duration |
1476 // Check if position is not past the duration |
1476 if ( iProperties[EPbPropertyPosition] >= iProperties[EPbPropertyDuration] ) |
1477 if ( iProperties[EPbPropertyPosition] >= iProperties[EPbPropertyDuration] ) |
1477 { |
1478 { |
1478 iProperties[EPbPropertyPosition] = 0; |
1479 iProperties[EPbPropertyPosition] = 0; |
1479 } |
1480 } |
1480 |
1481 |
1481 iAutoResumeHandler->HandleOpenFileComplete(); |
1482 iAutoResumeHandler->HandleOpenFileComplete(); |
1482 |
1483 |
1483 // Check if playback should not be started automatically. |
1484 // Check if playback should not be started automatically. |
1484 if ( iAccessPoint || ( iPlaylist && (!iPlaylist->AutoPlay()) ) ) |
1485 if ( iAccessPoint || ( iPlaylist && (!iPlaylist->AutoPlay()) ) ) |