equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Progress bar control |
14 * Description: Progress bar control |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 21 % |
18 // Version : %version: 22 % |
19 |
19 |
20 |
20 |
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 #include <eikenv.h> |
22 #include <eikenv.h> |
23 #include <gulicon.h> |
23 #include <gulicon.h> |
332 // - The clip is not seekable |
332 // - The clip is not seekable |
333 // - The state is not playing/paused |
333 // - The state is not playing/paused |
334 // - If TV-Out is connected and the clip is DRM protected |
334 // - If TV-Out is connected and the clip is DRM protected |
335 // |
335 // |
336 if ( iController->FileDetails()->iSeekable && |
336 if ( iController->FileDetails()->iSeekable && |
337 ( state == EPbStatePlaying || state == EPbStatePaused ) && |
337 ( state == EPbStatePlaying || state == EPbStatePaused ) ) |
338 iController->IsTvOutPlaybackAllowed() ) |
|
339 { |
338 { |
340 TReal ratio = (TReal) ( aPointerEvent.iPosition.iX - iFrameIconRect.iTl.iX )/ |
339 TReal ratio = (TReal) ( aPointerEvent.iPosition.iX - iFrameIconRect.iTl.iX )/ |
341 (TReal)( iFrameIconRect.Width() - KMPXProgressSliderWidth ); |
340 (TReal)( iFrameIconRect.Width() - KMPXProgressSliderWidth ); |
342 |
341 |
343 if ( ratio > 1.0 ) |
342 if ( ratio > 1.0 ) |