equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of video playback display handler |
14 * Description: Implementation of video playback display handler |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 7 % |
18 |
|
19 // Version : %version: 8 % |
19 |
20 |
20 |
21 |
21 #ifndef __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__ |
22 #ifndef __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__ |
22 #define __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__ |
23 #define __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__ |
23 |
24 |
34 |
35 |
35 // |
36 // |
36 // CLASS DECLARATION |
37 // CLASS DECLARATION |
37 // |
38 // |
38 class MMPXPlaybackUtility; |
39 class MMPXPlaybackUtility; |
|
40 class CMPXVideoPlaybackContainer; |
39 class CMPXVideoPlaybackViewFileDetails; |
41 class CMPXVideoPlaybackViewFileDetails; |
40 |
42 |
41 /* |
43 /* |
42 * CMPXVideoPlaybackDisplayHandler |
44 * CMPXVideoPlaybackDisplayHandler |
43 * |
45 * |
56 |
58 |
57 public: |
59 public: |
58 |
60 |
59 ~CMPXVideoPlaybackDisplayHandler(); |
61 ~CMPXVideoPlaybackDisplayHandler(); |
60 |
62 |
61 static CMPXVideoPlaybackDisplayHandler* NewL( MMPXPlaybackUtility* aPlayUtil ); |
63 static CMPXVideoPlaybackDisplayHandler* NewL( MMPXPlaybackUtility* aPlayUtil, |
|
64 CMPXVideoPlaybackContainer* aContainer ); |
62 |
65 |
63 void CreateDisplayWindowL( CWsScreenDevice& aScreenDevice, RWindow& aWin ); |
66 void CreateDisplayWindowL( CWsScreenDevice& aScreenDevice, RWindow& aWin ); |
64 |
67 |
65 void RemoveDisplayWindow(); |
68 void RemoveDisplayWindow( TBool aSignalPlaybackPlugin = ETrue ); |
66 |
69 |
67 TMPXVideoDisplayCommand HandleVideoDisplayMessageL( CMPXMessage* aMessage ); |
70 void HandleVideoDisplaySyncMessageL( CMPXMessage* aMessage ); |
68 |
71 |
69 TInt SetAspectRatioL( TMPXVideoPlaybackCommand aCmd ); |
72 TInt SetAspectRatioL( TMPXVideoPlaybackCommand aCmd ); |
70 |
73 |
71 TInt SetDefaultAspectRatioL( CMPXVideoPlaybackViewFileDetails* aFileDetails, |
74 TInt SetDefaultAspectRatioL( CMPXVideoPlaybackViewFileDetails* aFileDetails, |
72 TReal aDisplayAspectRatio ); |
75 TReal aDisplayAspectRatio ); |
73 |
76 |
74 private: |
77 private: |
75 |
78 |
76 CMPXVideoPlaybackDisplayHandler( MMPXPlaybackUtility* aPlayUtil ); |
79 CMPXVideoPlaybackDisplayHandler( MMPXPlaybackUtility* aPlayUtil, |
|
80 CMPXVideoPlaybackContainer* aContainer ); |
77 |
81 |
78 void ConstructL(); |
82 void ConstructL(); |
79 |
83 |
80 void LoadAspectRatioL(); |
84 void LoadAspectRatioL(); |
81 |
85 |
98 |
102 |
99 #endif |
103 #endif |
100 |
104 |
101 private: |
105 private: |
102 MMPXPlaybackUtility* iPlaybackUtility; |
106 MMPXPlaybackUtility* iPlaybackUtility; |
|
107 CMPXVideoPlaybackContainer* iContainer; |
103 |
108 |
104 RArray<TMPXAspectRatio> iAspectRatioArray; |
109 RArray<TMPXAspectRatio> iAspectRatioArray; |
105 TInt iCurrentIndexForAspectRatio; |
110 TInt iCurrentIndexForAspectRatio; |
106 TReal iDisplayAspectRatio; |
111 TReal iDisplayAspectRatio; |
107 |
112 |