equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of MPXVideoPlaybackControlConfiguration |
14 * Description: Implementation of MPXVideoPlaybackControlConfiguration |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 11 % |
18 |
|
19 // Version : %version: e003sa33#13 % |
19 |
20 |
20 |
21 |
21 // INCLUDE FILES |
22 // INCLUDE FILES |
22 #include <e32def.h> |
23 #include <e32def.h> |
23 #include <e32base.h> |
24 #include <e32base.h> |
96 CMPXVideoPlaybackViewFileDetails* fileDetails = iControlsController->FileDetails(); |
97 CMPXVideoPlaybackViewFileDetails* fileDetails = iControlsController->FileDetails(); |
97 |
98 |
98 if ( fileDetails->iPlaybackMode == EMPXVideoStreaming ) |
99 if ( fileDetails->iPlaybackMode == EMPXVideoStreaming ) |
99 { |
100 { |
100 // |
101 // |
101 // streaming mode, add branding animation control to show while initializing |
102 // streaming mode, add branding animation control to show while initializing |
102 // |
103 // |
103 iControlsList.AppendL( EMPXBrandingAnimation ); |
104 iControlsList.AppendL( EMPXBrandingAnimation ); |
104 } |
|
105 else if ( fileDetails->iRNFormat ) |
|
106 { |
|
107 // |
|
108 // RN clip and local mode, add RN logo bitmap to show while initializing |
|
109 // |
|
110 iControlsController->SetRealOneBitmapVisibility( ETrue ); |
|
111 } |
105 } |
112 |
106 |
113 iControlsList.AppendL( EMPXSoftkeyDetails ); |
107 iControlsList.AppendL( EMPXSoftkeyDetails ); |
114 iControlsList.AppendL( EMPXSoftkeyBack ); |
108 iControlsList.AppendL( EMPXSoftkeyBack ); |
115 iControlsList.AppendL( EMPXProgressBar ); |
109 iControlsList.AppendL( EMPXProgressBar ); |
296 |
290 |
297 iTitleArtistIndicatorsAdded = EFalse; |
291 iTitleArtistIndicatorsAdded = EFalse; |
298 } |
292 } |
299 |
293 |
300 // |
294 // |
301 // If video is enabled, add aspect ratio icon |
295 // If video is enabled, |
|
296 // if video has not same aspect ratio with phone screenadd then |
|
297 // add aspect ratio icon |
302 // |
298 // |
303 if ( ! iAspectRatioIconAdded && |
299 if ( ! iAspectRatioIconAdded && |
304 fileDetails->iVideoHeight > 0 && |
300 fileDetails->iVideoHeight > 0 && |
305 fileDetails->iVideoWidth > 0 && |
301 fileDetails->iVideoWidth > 0 && |
|
302 ! ( iControlsController->IsSameAspectRatio() ) && |
306 AknLayoutUtils::PenEnabled() ) |
303 AknLayoutUtils::PenEnabled() ) |
307 { |
304 { |
308 iControlsList.AppendL( EMPXAspectRatioIcon ); |
305 iControlsList.AppendL( EMPXAspectRatioIcon ); |
309 iAspectRatioIconAdded = ETrue; |
306 iAspectRatioIconAdded = ETrue; |
310 } |
307 } |
313 else |
310 else |
314 { |
311 { |
315 // |
312 // |
316 // No video for this clip |
313 // No video for this clip |
317 // |
314 // |
318 |
315 |
319 // |
316 // |
320 // Remove the Real One bitmap and show the audio only bitmaps |
317 // Remove the Real One bitmap and show the audio only bitmaps |
321 // |
318 // |
322 iControlsController->SetRealOneBitmapVisibility( EFalse ); |
319 iControlsController->SetRealOneBitmapVisibility( EFalse ); |
323 |
320 |
324 if ( ! iAudioOnlyIndicatorsAdded ) |
321 if ( ! iAudioOnlyIndicatorsAdded ) |
325 { |
322 { |
326 if ( fileDetails->iRNFormat ) |
323 if ( iControlsController->IsRealMediaFormat() ) |
327 { |
324 { |
328 iControlsList.AppendL( EMPXRealAudioBitmap ); |
325 iControlsList.AppendL( EMPXRealAudioBitmap ); |
329 } |
326 } |
330 |
327 |
331 // |
328 // |