equal
deleted
inserted
replaced
49 { |
49 { |
50 } |
50 } |
51 |
51 |
52 void CMMAManager::ConstructL(TInt aMIDletSuiteID) |
52 void CMMAManager::ConstructL(TInt aMIDletSuiteID) |
53 { |
53 { |
54 LOG( EJavaMMAPI, EInfo, "MMA::CMMAManager::ConstructL +"); |
54 LOG(EJavaMMAPI, EInfo, "MMA::CMMAManager::ConstructL +"); |
55 // |
55 // |
56 // Create and insert known player factories |
56 // Create and insert known player factories |
57 // |
57 // |
58 |
58 |
59 CMMAVideoUrlPlayerFactory* videoUrlPlayerFactory = CMMAVideoUrlPlayerFactory::NewLC(); |
59 CMMAVideoUrlPlayerFactory* videoUrlPlayerFactory = CMMAVideoUrlPlayerFactory::NewLC(); |
80 CMMAAudioRecorderFactory* audioRecorderFactory = |
80 CMMAAudioRecorderFactory* audioRecorderFactory = |
81 CMMAAudioRecorderFactory::NewLC(aMIDletSuiteID); |
81 CMMAAudioRecorderFactory::NewLC(aMIDletSuiteID); |
82 AddPlayerFactoryL(audioRecorderFactory); |
82 AddPlayerFactoryL(audioRecorderFactory); |
83 CleanupStack::Pop(); // audioRecorderFactory |
83 CleanupStack::Pop(); // audioRecorderFactory |
84 |
84 |
85 /* |
85 /* |
86 CMMAAnimationPlayerFactory* animationPlayerFactory = |
86 CMMAAnimationPlayerFactory* animationPlayerFactory = |
87 CMMAAnimationPlayerFactory::NewLC(); |
87 CMMAAnimationPlayerFactory::NewLC(); |
88 AddPlayerFactoryL(animationPlayerFactory); |
88 AddPlayerFactoryL(animationPlayerFactory); |
89 CleanupStack::Pop(); // animationPlayerFactory |
89 CleanupStack::Pop(); // animationPlayerFactory |
90 */ |
90 */ |
91 |
91 |
92 // Add camera playerfactory only if there is a camera |
92 // Add camera playerfactory only if there is a camera |
93 if (CCamera::CamerasAvailable() > 0) |
93 if (CCamera::CamerasAvailable() > 0) |
94 { |
94 { |
95 CMMACameraPlayerFactory* cameraPlayerFactory = |
95 CMMACameraPlayerFactory* cameraPlayerFactory = |
103 CMMADRMPlayerFactory::NewLC(videoPlayerFactory); |
103 CMMADRMPlayerFactory::NewLC(videoPlayerFactory); |
104 AddPlayerFactoryL(drmPlayerFactory); |
104 AddPlayerFactoryL(drmPlayerFactory); |
105 CleanupStack::Pop(); // drmPlayerFactory |
105 CleanupStack::Pop(); // drmPlayerFactory |
106 #endif // RD_JAVA_OMA_DRM_V2 |
106 #endif // RD_JAVA_OMA_DRM_V2 |
107 |
107 |
108 LOG( EJavaMMAPI, EInfo, "MMA::CMMAManager::ConstructL -"); |
108 LOG(EJavaMMAPI, EInfo, "MMA::CMMAManager::ConstructL -"); |
109 } |
109 } |
110 |
110 |
111 void CMMAManager::StaticCreateManagerL(CMMAManager** aManager, |
111 void CMMAManager::StaticCreateManagerL(CMMAManager** aManager, |
112 TInt aMIDletSuiteID) |
112 TInt aMIDletSuiteID) |
113 { |
113 { |