|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This class implements FramePositioningControl for video player |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMMAVIDEOFRAMEPOSITIONINGCONTROL_H |
|
20 #define CMMAVIDEOFRAMEPOSITIONINGCONTROL_H |
|
21 |
|
22 // INTERNAL INCLUDES |
|
23 #include "cmmavideoplayer.h" |
|
24 #include "cmmaframepositioningcontrol.h" // base class |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * This class implements FramePositioningControl for video player |
|
31 */ |
|
32 NONSHARABLE_CLASS(CMMAVideoFramePositioningControl) : |
|
33 public CMMAFramePositioningControl |
|
34 { |
|
35 public: |
|
36 static CMMAVideoFramePositioningControl* NewL(CMMAVideoPlayer* aPlayer); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CMMAVideoFramePositioningControl(); |
|
42 |
|
43 protected: |
|
44 /** |
|
45 * Constructor. |
|
46 */ |
|
47 CMMAVideoFramePositioningControl(CMMAVideoPlayer* aPlayer); |
|
48 |
|
49 public: // From CMMAFramePositioningControl |
|
50 TInt SeekL(TInt aFrameNumber); |
|
51 TInt SkipL(TInt aFramesToSkip); |
|
52 void MapFrameToTimeL(TInt aFrameNumber, TInt64* aMediaTime); |
|
53 TInt MapTimeToFrameL(TInt64* aMediaTime); |
|
54 |
|
55 private: // New methods |
|
56 /** |
|
57 * Get framerate of video and check that it is > 0 . |
|
58 */ |
|
59 void GetAndCheckFrameRateL(TReal32& aFrameRate); |
|
60 |
|
61 private: |
|
62 CMMAVideoPlayer* iPlayer; |
|
63 |
|
64 }; |
|
65 |
|
66 |
|
67 #endif // CMMAVIDEOFRAMEPOSITIONINGCONTROL_H |