27 #include <mmfscalingcustomcommandconstants.h> |
27 #include <mmfscalingcustomcommandconstants.h> |
28 #include <mpxvideoplaybackdefs.h> |
28 #include <mpxvideoplaybackdefs.h> |
29 #include <mediaclientvideodisplay.h> |
29 #include <mediaclientvideodisplay.h> |
30 |
30 |
31 |
31 |
32 // |
32 // |
33 // CLASS DECLARATION |
33 // CLASS DECLARATION |
34 // |
34 // |
35 class MMPXPlaybackUtility; |
|
36 class CMPXVideoViewWrapper; |
35 class CMPXVideoViewWrapper; |
37 class VideoPlaybackViewFileDetails; |
36 class VideoPlaybackViewFileDetails; |
38 |
37 |
39 /* |
38 /* |
40 * CVideoPlaybackDisplayHandler |
39 * CVideoPlaybackDisplayHandler |
44 { |
43 { |
45 public: |
44 public: |
46 |
45 |
47 ~CVideoPlaybackDisplayHandler(); |
46 ~CVideoPlaybackDisplayHandler(); |
48 |
47 |
49 static CVideoPlaybackDisplayHandler* NewL( MMPXPlaybackUtility* aPlayUtil, |
48 static CVideoPlaybackDisplayHandler* NewL( CMPXVideoViewWrapper* aViewWrapper ); |
50 CMPXVideoViewWrapper* aViewWrapper ); |
|
51 |
49 |
52 void CreateDisplayWindowL( RWsSession& aWs, |
50 void CreateDisplayWindowL( RWsSession& aWs, |
53 CWsScreenDevice& aScreenDevice, |
51 CWsScreenDevice& aScreenDevice, |
54 RWindow& aWin, |
52 RWindow& aWin, |
55 TRect aDisplayRect ); |
53 TRect aDisplayRect, |
|
54 VideoPlaybackViewFileDetails* fileDetails ); |
56 |
55 |
57 void RemoveDisplayWindow(); |
56 void RemoveDisplayWindow(); |
58 |
57 |
59 void HandleVideoDisplayMessageL( CMPXMessage* aMessage ); |
58 void HandleVideoDisplayMessageL( CMPXMessage* aMessage ); |
60 |
59 |
61 TInt SetAspectRatioL( TMPXVideoPlaybackCommand aCmd ); |
60 TInt SetAspectRatioL( TMPXVideoPlaybackCommand aCmd ); |
62 |
|
63 TInt SetDefaultAspectRatioL( VideoPlaybackViewFileDetails* aFileDetails, |
|
64 TReal32 aDisplayAspectRatio ); |
|
65 |
61 |
66 void UpdateVideoRectL( TRect aRect, TBool transitionEffect ); |
62 void UpdateVideoRectL( TRect aRect, TBool transitionEffect ); |
67 |
63 |
68 private: |
64 private: |
69 |
65 |
70 CVideoPlaybackDisplayHandler( MMPXPlaybackUtility* aPlayUtil, |
66 CVideoPlaybackDisplayHandler( CMPXVideoViewWrapper* aViewWrapper ); |
71 CMPXVideoViewWrapper* aViewWrapper ); |
|
72 |
67 |
73 void ConstructL(); |
68 void ConstructL(); |
74 |
69 |
75 public: |
70 public: |
76 MMPXPlaybackUtility* iPlaybackUtility; |
|
77 CMPXVideoViewWrapper* iViewWrapper; |
71 CMPXVideoViewWrapper* iViewWrapper; |
78 CMediaClientVideoDisplay* iVideoDisplay; |
72 CMediaClientVideoDisplay* iVideoDisplay; |
79 |
73 |
80 TRect iRect; |
74 TRect iRect; |
81 TInt iAspectRatio; |
75 TInt iAspectRatio; |