26
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// REQ1952
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __DRMTESTVIDPLAYER_H__
|
|
19 |
#define __DRMTESTVIDPLAYER_H__
|
|
20 |
|
|
21 |
#include <fbs.h>
|
|
22 |
#include "TSI_MMFVCLNT.h"
|
|
23 |
#include "TestPlayer.h"
|
|
24 |
|
|
25 |
/**
|
|
26 |
*
|
|
27 |
* DRM Get Frame from unprotected file
|
|
28 |
*
|
|
29 |
* @class CTestStepVidPlayerDRMGetFrame
|
|
30 |
*
|
|
31 |
* @xxxx
|
|
32 |
*
|
|
33 |
*/
|
|
34 |
|
|
35 |
class CTestStepVidPlayerDRMGetFrame : public CTestVclntVideoFile
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
static CTestStepVidPlayerDRMGetFrame* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
39 |
virtual TVerdict DoTestStepL();
|
|
40 |
virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
|
|
41 |
virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
|
|
42 |
private:
|
|
43 |
CTestStepVidPlayerDRMGetFrame(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
44 |
};
|
|
45 |
|
|
46 |
/**
|
|
47 |
*
|
|
48 |
* DRM Get Frame from protected file
|
|
49 |
*
|
|
50 |
* @class CTestStepVidPlayerDRMGetFrame
|
|
51 |
*
|
|
52 |
* @xxxx
|
|
53 |
*
|
|
54 |
*/
|
|
55 |
class CTestStepVidPlayerDRMGetFrameProtected : public CTestVclntVideoFile
|
|
56 |
{
|
|
57 |
public:
|
|
58 |
static CTestStepVidPlayerDRMGetFrameProtected* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
59 |
virtual TVerdict DoTestStepL();
|
|
60 |
virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
|
|
61 |
virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
|
|
62 |
private:
|
|
63 |
CTestStepVidPlayerDRMGetFrameProtected(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
64 |
};
|
|
65 |
|
|
66 |
/**
|
|
67 |
*
|
|
68 |
* Attempt ot open a DRM protected file and play with no rights set
|
|
69 |
*
|
|
70 |
* @class CTestStepVidPlayerDRMPlayNoRights
|
|
71 |
*
|
|
72 |
* @xxxx
|
|
73 |
*
|
|
74 |
*/
|
|
75 |
class CTestStepVidPlayerDRMPlayNoRights :public CTestVclntVideoFile
|
|
76 |
{
|
|
77 |
public:
|
|
78 |
static CTestStepVidPlayerDRMPlayNoRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
79 |
virtual TVerdict DoTestStepL();
|
|
80 |
virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
|
|
81 |
private:
|
|
82 |
CTestStepVidPlayerDRMPlayNoRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
83 |
|
|
84 |
};
|
|
85 |
|
|
86 |
/**
|
|
87 |
*
|
|
88 |
* Open a DRM protected video file and play with DRM agent providing
|
|
89 |
* rights and MIME typ set
|
|
90 |
*
|
|
91 |
* @class CTestStepVidPlayerDRMPlayRights
|
|
92 |
*
|
|
93 |
* @xxxx
|
|
94 |
*
|
|
95 |
*/
|
|
96 |
class CTestStepVidPlayerDRMPlayRights :public CTestVclntVideoFile
|
|
97 |
{
|
|
98 |
public:
|
|
99 |
static CTestStepVidPlayerDRMPlayRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
100 |
virtual TVerdict DoTestStepL();
|
|
101 |
virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
|
|
102 |
private:
|
|
103 |
CTestStepVidPlayerDRMPlayRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
|
|
104 |
|
|
105 |
};
|
|
106 |
|
|
107 |
TAny GetDriveName(TDes& aFileName);
|
|
108 |
|
|
109 |
#endif //__DRMTESTVIDPLAYER_H__
|