1 /* |
|
2 * Copyright (c) 2002 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: This class is used for creating stream player. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMMAAUDIOSTREAMPLAYERFACTORY_H |
|
20 #define CMMAAUDIOSTREAMPLAYERFACTORY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cmmaemcplayerfactory.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 /** |
|
27 * This class is used for creating stream player. |
|
28 * |
|
29 * |
|
30 */ |
|
31 NONSHARABLE_CLASS(CMMAAudioStreamPlayerFactory): public CMMAEMCPlayerFactory |
|
32 { |
|
33 public: // Constructor and destructor |
|
34 static CMMAAudioStreamPlayerFactory* NewLC(); |
|
35 ~CMMAAudioStreamPlayerFactory(); |
|
36 |
|
37 private: // Constructor |
|
38 CMMAAudioStreamPlayerFactory(); |
|
39 |
|
40 public: // From CMMAEMCPlayerFactory |
|
41 CMMAPlayer* CreatePlayerL(const TDesC& /*aContentType*/); |
|
42 CMMAPlayer* CreatePlayerL(const TDesC8& /*aHeaderData*/); |
|
43 CMMAPlayer* CreatePlayerL(const TDesC& aProtocol, |
|
44 const TDesC& aMiddlePart, |
|
45 const TDesC& aParameters); |
|
46 CMMAPlayer* CreatePlayerL( |
|
47 CMMAEMCResolver* aResolver); |
|
48 void GetSupportedContentTypesL(const TDesC& aProtocol, |
|
49 CDesC16Array& aMimeTypeArray); |
|
50 void MediaIdsL(RArray<TUid>& aMediaIds); |
|
51 |
|
52 public: // new method |
|
53 void SetSourceInfoL(const TUint8* aHeader, TInt aLength); |
|
54 |
|
55 private: // Data, owned |
|
56 HBufC8* iHeaderData; |
|
57 // |
|
58 |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // CMMAAUDIOSTREAMPLAYERFACTORY_H |
|