5
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2007 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 the License "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 is used to find resolution of video file
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef MGVIDEORESOLUTION_H_
|
|
19 |
#define MGVIDEORESOLUTION_H_
|
|
20 |
|
|
21 |
|
|
22 |
#include <VideoPlayer.h>
|
|
23 |
|
|
24 |
#include<e32std.h>
|
|
25 |
#include<e32base.h>
|
|
26 |
#include"mgmresolution.h"
|
|
27 |
|
|
28 |
class CMediaContainer;
|
|
29 |
/**
|
|
30 |
* CVideoResolution class This class is used to find resolution of video file
|
|
31 |
* @since Series60 v3.2
|
|
32 |
*/
|
|
33 |
class CVideoResolution: public CBase , public MResolution,public MVideoPlayerUtilityObserver
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
/**
|
|
37 |
* Two-phased constructor
|
|
38 |
* @return CVideoResolution* Returns the instance of
|
|
39 |
* CVideoResolution.
|
|
40 |
*/
|
|
41 |
static CVideoResolution* NewL(TDesC& aUrl);
|
|
42 |
/**
|
|
43 |
* This method gets the resolution
|
|
44 |
* @param aSize On return it is the resolution of media file
|
|
45 |
* @return TBool
|
|
46 |
*/
|
|
47 |
TBool GetresolutionL(TSize& aSize);
|
|
48 |
/**
|
|
49 |
* Destructor
|
|
50 |
*/
|
|
51 |
~CVideoResolution();
|
|
52 |
|
|
53 |
public:
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Protected method derived from MVideoPlayerUtilityObserver
|
|
57 |
* @aError Error returned
|
|
58 |
*/
|
|
59 |
void MvpuoOpenComplete(TInt aError);
|
|
60 |
/**
|
|
61 |
* Protected method derived from MVideoPlayerUtilityObserver
|
|
62 |
* @aError Error returned
|
|
63 |
*/
|
|
64 |
|
|
65 |
void MvpuoPrepareComplete(TInt aError);
|
|
66 |
/**
|
|
67 |
* Protected method derived from MVideoPlayerUtilityObserver
|
|
68 |
* @aFrame Bitmap
|
|
69 |
* @aError Errorcoede
|
|
70 |
*/
|
|
71 |
|
|
72 |
void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Protected method derived from MVideoPlayerUtilityObserver
|
|
76 |
* @aError Error returned
|
|
77 |
*/
|
|
78 |
|
|
79 |
void MvpuoPlayComplete(TInt aError);
|
|
80 |
/**
|
|
81 |
* Protected method derived from MVideoPlayerUtilityObserver
|
|
82 |
* @aError Error returned
|
|
83 |
*/
|
|
84 |
|
|
85 |
void MvpuoEvent(const TMMFEvent& aEvent);
|
|
86 |
private:
|
|
87 |
/**
|
|
88 |
* Constructor
|
|
89 |
*/
|
|
90 |
|
|
91 |
CVideoResolution();
|
|
92 |
/**
|
|
93 |
* Two phase construction
|
|
94 |
* @aUrl Url of the video file
|
|
95 |
*/
|
|
96 |
|
|
97 |
void ConstructL(TDesC& aUrl);
|
|
98 |
|
|
99 |
private:
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Pointer to CMediaContainer
|
|
103 |
*/
|
|
104 |
|
|
105 |
CMediaContainer* iMediaContainer;
|
|
106 |
/**
|
|
107 |
* Pointer to CVideoPlayerUtility
|
|
108 |
*/
|
|
109 |
CVideoPlayerUtility* iVideoUtility ;
|
|
110 |
/**
|
|
111 |
* Video filepath
|
|
112 |
*/
|
|
113 |
HBufC* iVideoFilePath;
|
|
114 |
/**
|
|
115 |
* Error
|
|
116 |
*/
|
|
117 |
TInt iErr;
|
|
118 |
|
|
119 |
};
|
|
120 |
|
|
121 |
|
|
122 |
#endif /* MGVIDEORESOLUTION_H_ */
|