equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of Video base playback view |
14 * Description: Implementation of Video base playback view |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 56 % |
18 // Version : %version: 57 % |
19 |
19 |
20 |
20 |
21 // Include Files |
21 // Include Files |
22 |
22 |
23 #include <aknViewAppUi.h> |
23 #include <aknViewAppUi.h> |
1352 else |
1352 else |
1353 { |
1353 { |
1354 if ( aMedia.IsSupported( KMPXMediaVideoError ) ) |
1354 if ( aMedia.IsSupported( KMPXMediaVideoError ) ) |
1355 { |
1355 { |
1356 TInt error = aMedia.ValueTObjectL<TInt>( KMPXMediaVideoError ); |
1356 TInt error = aMedia.ValueTObjectL<TInt>( KMPXMediaVideoError ); |
|
1357 |
1357 // Reset the controls |
1358 // Reset the controls |
1358 iContainer->HandleCommandL( EMPXPbvCmdResetControls ); |
1359 iContainer->HandleCommandL( EMPXPbvCmdResetControls ); |
|
1360 |
1359 // Set the iMediaRequested flag to false |
1361 // Set the iMediaRequested flag to false |
1360 iMediaRequested = EFalse; |
1362 iMediaRequested = EFalse; |
|
1363 |
|
1364 // Handle the plugin error |
|
1365 HandlePluginErrorL( error ); |
|
1366 |
1361 // Reset the playback state to stopped |
1367 // Reset the playback state to stopped |
1362 iPlaybackState = EPbStateStopped; |
1368 iPlaybackState = EPbStateStopped; |
1363 // Handle the plugin error |
|
1364 HandlePluginErrorL( error ); |
|
1365 } |
1369 } |
1366 else |
1370 else |
1367 { |
1371 { |
1368 DoHandleMediaL( aMedia, aError ); |
1372 DoHandleMediaL( aMedia, aError ); |
1369 } |
1373 } |
1838 // |
1842 // |
1839 void CMPXVideoBasePlaybackView::HandleDrmErrorsL( TInt aError ) |
1843 void CMPXVideoBasePlaybackView::HandleDrmErrorsL( TInt aError ) |
1840 { |
1844 { |
1841 MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::HandleDrmErrorsL()")); |
1845 MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::HandleDrmErrorsL()")); |
1842 |
1846 |
1843 if ( IsMultiItemPlaylist() ) |
1847 // |
|
1848 // If we receive an error when we are initialized, let the DRM UI Handler |
|
1849 // process the error. If we have been playing, display the error message |
|
1850 // and close the playback |
|
1851 // |
|
1852 if ( IsMultiItemPlaylist() || iPlaybackState != EPbStateInitialised ) |
|
1853 |
1844 { |
1854 { |
1845 DisplayErrorMessageL( R_MPX_DRM_RIGHTS_MISSING ); |
1855 DisplayErrorMessageL( R_MPX_DRM_RIGHTS_MISSING ); |
1846 } |
1856 } |
1847 else |
1857 else |
1848 { |
1858 { |