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