|
1 /* |
|
2 * Copyright (c) 2008 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: header file of CMPXVideoPlaybackControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 8 % |
|
19 |
|
20 |
|
21 #ifndef MPXVIDEOPLAYBACKCONTROL_HRH_ |
|
22 #define MPXVIDEOPLAYBACKCONTROL_HRH_ |
|
23 |
|
24 // DATA TYPES |
|
25 const TInt KThousandNotKilobyte = 1000; |
|
26 |
|
27 enum TMPFXVideoPlaybackControlProperties |
|
28 { |
|
29 EMPXSoftkeyControl = 0x1, |
|
30 EMPXBufferingControl = 0x2, |
|
31 EMPXShownWhenInitializing = 0x4, |
|
32 EMPXShownWhenPlaying = 0x8, |
|
33 EMPXShownWhenPaused = 0x10, |
|
34 EMPXShownWhenStopped = 0x20, |
|
35 EMPXShownWhenSeeking = 0x40, |
|
36 EMPXAllProperties = 0xffffffff |
|
37 }; |
|
38 |
|
39 enum TMPXVideoPlaybackControls |
|
40 { |
|
41 EMPXSoftkeyDetails, |
|
42 EMPXSoftkeyBack, |
|
43 EMPXButtonBar, |
|
44 EMPXProgressBar, |
|
45 EMPXVolumeBar, |
|
46 |
|
47 // Only for streaming case |
|
48 // Can handle from NotInitilized state |
|
49 // |
|
50 EMPXBufferingLabel, |
|
51 |
|
52 // Only for audio only or tv out case |
|
53 // Upto user or prepared state |
|
54 EMPXTitleLabel, |
|
55 EMPXArtistLabel, |
|
56 |
|
57 // |
|
58 // Bitmaps |
|
59 // |
|
60 EMPXRealAudioBitmap, |
|
61 EMPXSoundBitmap, |
|
62 EMPXRealLogoBitmap, |
|
63 EMPXNoVideoBitmap, |
|
64 |
|
65 EMPXDownloadPausedIcon, |
|
66 |
|
67 EMPXAspectRatioIcon, |
|
68 EMPXBrandingAnimation, |
|
69 |
|
70 EMPXVideoPausedIcon, |
|
71 EMPXMediaDetailsViewer, |
|
72 |
|
73 EMPXControlsCount // has to be last |
|
74 }; |
|
75 |
|
76 /** Command ID's. */ |
|
77 enum TMPXVideoPlaybackControlCommandIds |
|
78 { |
|
79 EMPXControlCmdPluginInitialized, |
|
80 EMPXControlCmdToggleVisibility, // Whenever user taps on the screen |
|
81 EMPXControlCmdTvOutConnected, |
|
82 EMPXControlCmdTvOutDisconnected, |
|
83 EMPXControlCmdSetAspectRatio, |
|
84 EMPXControlCmdSetVolume, |
|
85 EMPXControlCmdSetDuration, |
|
86 EMPXControlCmdSetPosition, |
|
87 EMPXControlCmdStateChanged, |
|
88 EMPXControlCmdDownloadUpdated, |
|
89 EMPXControlCmdSetDownloadSize, |
|
90 EMPXControlCmdDownloadComplete, |
|
91 EMPXControlCmdSetDownloadPaused, |
|
92 EMPXControlCmdClearDownloadPaused, |
|
93 EMPXControlCmdHandleBackgroundEvent, |
|
94 EMPXControlCmdHandleForegroundEvent, |
|
95 EMPXControlCmdHandleErrors, |
|
96 EMPXControlCmdShowControls, |
|
97 EMPXControlCmdSoftKeyPressed, |
|
98 EMPXControlCmdShowFileDetailsViewer, |
|
99 EMPXControlCmdCloseFileDetailsViewer, |
|
100 EMPXControlCmdHideControls, |
|
101 EMPXControlCmdSurfaceCreated |
|
102 }; |
|
103 |
|
104 enum TMPXVideoSeekingType |
|
105 { |
|
106 EMpxVideoSeekingForward, |
|
107 EMpxVideoSeekingBackward, |
|
108 EMpxVideoSeekingStop |
|
109 }; |
|
110 |
|
111 enum TMPXVideoControlType |
|
112 { |
|
113 EMpxVideoPlaybackContainer, |
|
114 EMpxVideoPlaybackControl |
|
115 }; |
|
116 |
|
117 enum TMPXVideoUserInputType |
|
118 { |
|
119 EMpxVideoKeyboard, |
|
120 EMpxVideoTouch, |
|
121 EMpxVideoMediaKeys, |
|
122 EMpxVideoSpecialHWKeys, |
|
123 EMpxVideoNone |
|
124 }; |
|
125 |
|
126 |
|
127 #endif /*MPXVIDEOPLAYBACKCONTROL_HRH_*/ |