equal
deleted
inserted
replaced
70 |
70 |
71 public: |
71 public: |
72 /** |
72 /** |
73 * Deletes all owned members. |
73 * Deletes all owned members. |
74 */ |
74 */ |
75 virtual ~CMMAPlayer(); |
75 IMPORT_C virtual ~CMMAPlayer(); |
76 protected: |
76 protected: |
77 /** |
77 /** |
78 * Initializes member variables to defaults. |
78 * Initializes member variables to defaults. |
79 */ |
79 */ |
80 CMMAPlayer(); |
80 IMPORT_C CMMAPlayer(); |
81 |
81 |
82 /** |
82 /** |
83 * Second phase construct. |
83 * Second phase construct. |
84 */ |
84 */ |
85 void ConstructL(); |
85 void ConstructL(); |
153 |
153 |
154 /** |
154 /** |
155 * Start playing. Started event will be posted. If there is no error |
155 * Start playing. Started event will be posted. If there is no error |
156 * player will be in EStarted state. |
156 * player will be in EStarted state. |
157 */ |
157 */ |
158 virtual void StartL() = 0; |
158 virtual void StartL(TBool aPostEvent) = 0; |
159 |
159 |
160 /** |
160 /** |
161 * Stops playing. After this player may be restarted with StartL method. |
161 * Stops playing. After this player may be restarted with StartL method. |
162 * After this player is in EPrefetched state. |
162 * After this player is in EPrefetched state. |
163 * |
163 * |
179 /** |
179 /** |
180 * Gets duration. |
180 * Gets duration. |
181 * |
181 * |
182 * @param aDuration Duration or KTimeUnknown if not specified. |
182 * @param aDuration Duration or KTimeUnknown if not specified. |
183 */ |
183 */ |
184 virtual void GetDuration(TInt64* aDuration); |
184 IMPORT_C virtual void GetDuration(TInt64* aDuration); |
185 |
185 |
186 /** |
186 /** |
187 * Sets media time. |
187 * Sets media time. |
188 * |
188 * |
189 * @param aTime Time to set. When method returns parameter contains |
189 * @param aTime Time to set. When method returns parameter contains |
223 * |
223 * |
224 * @param aListenerObject Java side listener object. |
224 * @param aListenerObject Java side listener object. |
225 * @param aJni Used to get method ids. |
225 * @param aJni Used to get method ids. |
226 * @param aPoster Used to post events. |
226 * @param aPoster Used to post events. |
227 */ |
227 */ |
228 virtual void SetPlayerListenerObjectL(jobject aListenerObject, |
228 IMPORT_C virtual void SetPlayerListenerObjectL(jobject aListenerObject, |
229 JNIEnv* aJni, |
229 JNIEnv* aJni, |
230 MMMAEventPoster* aPoster); |
230 MMMAEventPoster* aPoster); |
231 |
231 |
232 /** |
232 /** |
233 * Returns total count of the controls owned by this player. |
233 * Returns total count of the controls owned by this player. |
344 /** |
344 /** |
345 * Changes player's state and informs all MMMAPlayerStateListeners. |
345 * Changes player's state and informs all MMMAPlayerStateListeners. |
346 * |
346 * |
347 * @param aState New state. |
347 * @param aState New state. |
348 */ |
348 */ |
349 void ChangeState(TPlayerState aState); |
349 IMPORT_C void ChangeState(TPlayerState aState); |
350 |
350 |
351 public: // from MMMASourceStreamListener |
351 public: // from MMMASourceStreamListener |
352 virtual void ReadCompletedL(TInt aStatus, const TDesC8& aData); |
352 virtual void ReadCompletedL(TInt aStatus, const TDesC8& aData); |
353 |
353 |
354 protected: // Memeber data |
354 protected: // Memeber data |