|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Video player observer interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPHONEVIDEOPLAYEROBSERVER_H |
|
20 #define MPHONEVIDEOPLAYEROBSERVER_H |
|
21 |
|
22 // CLASS DECLARATION |
|
23 |
|
24 /** |
|
25 * Video player observer interface. |
|
26 * |
|
27 * @lib Phone.app |
|
28 * @since Series 60 3.1 |
|
29 */ |
|
30 class MPhoneVideoPlayerObserver |
|
31 { |
|
32 public: |
|
33 |
|
34 // Enumerates different failure events. |
|
35 // |
|
36 enum TPhoneVideoPlayerErrorEvent |
|
37 { |
|
38 EVideoPlayerInitializingFailure, // Failure during initialization |
|
39 EVideoPlayerPlayingFailure // Failure during playback |
|
40 }; |
|
41 |
|
42 /** |
|
43 * This function is called for video player errors. |
|
44 * @param aEvent The error event happend in initializing or playing. |
|
45 * @param aError The error code return by MMF video player. |
|
46 */ |
|
47 virtual void HandleVideoPlayerError( |
|
48 TPhoneVideoPlayerErrorEvent aEvent, |
|
49 TInt aError ) = 0; |
|
50 |
|
51 /** |
|
52 * This function is called when video player initialization complete |
|
53 */ |
|
54 virtual void HandleVideoPlayerInitComplete() = 0; |
|
55 |
|
56 /** |
|
57 * This function is called after the playing completes successfully |
|
58 */ |
|
59 virtual void HandleVideoPlayerPlayingComplete() = 0; |
|
60 }; |
|
61 |
|
62 #endif // MPHONEVIDEOPLAYEROBSERVER_H |
|
63 |
|
64 // End of File |