mmlibs/mmfw/inc/videoplayer2.h
changeset 0 b8ed18f6c07b
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     1 // Copyright (c) 2007-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 //
       
    15 
       
    16 #ifndef VIDEOPLAYER2_H
       
    17 #define VIDEOPLAYER2_H
       
    18 
       
    19 #include <videoplayer.h>
       
    20 
       
    21 class MMMFSurfaceEventHandler;
       
    22 
       
    23 /**
       
    24 @publishedPartner
       
    25 @released
       
    26 
       
    27 Extension class from CVideoPlayerUtility to allow graphics surface support.
       
    28 */
       
    29 class CVideoPlayerUtility2 : public CVideoPlayerUtility
       
    30 	{
       
    31 public:
       
    32 
       
    33 	~CVideoPlayerUtility2();
       
    34 	IMPORT_C static CVideoPlayerUtility2* NewL(MVideoPlayerUtilityObserver& aObserver,
       
    35 											  TInt aPriority,
       
    36 											  TInt aPref);
       
    37 										
       
    38 	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, 
       
    39 									RWindow& aWindow, const TRect& aVideoExtent, 
       
    40 									const TRect& aWindowClipRect);
       
    41 
       
    42 	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindow& aWindow);
       
    43 
       
    44  	IMPORT_C void RemoveDisplayWindow(RWindow& aWindow);
       
    45  	
       
    46  	IMPORT_C void SetVideoExtentL(const RWindow& aWindow, const TRect& aVideoExtent);
       
    47 	
       
    48 	IMPORT_C void SetWindowClipRectL(const RWindow& aWindow, const TRect& aWindowClipRect);
       
    49 	
       
    50 	IMPORT_C void SetRotationL(const RWindow& aWindow, TVideoRotation aRotation);
       
    51 	
       
    52 	IMPORT_C TVideoRotation RotationL(const RWindow& aWindow);
       
    53 	
       
    54 	IMPORT_C void SetScaleFactorL(const RWindow& aWindow, TReal32 aWidthPercentage, TReal32 aHeightPercentage);
       
    55 	
       
    56 	IMPORT_C void GetScaleFactorL(const RWindow& aWindow, TReal32& aWidthPercentage, TReal32& aHeightPercentage);
       
    57 	
       
    58 	IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType);
       
    59 
       
    60     IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos);
       
    61 
       
    62     IMPORT_C void AddDisplayL(RWsSession& aWs, TInt aDisplay, MMMFSurfaceEventHandler& aEventHandler);
       
    63     
       
    64     IMPORT_C void RemoveDisplay(TInt aDisplay);    
       
    65     
       
    66     IMPORT_C void SetExternalDisplaySwitchingL(TInt aDisplay, TBool aControl);
       
    67 
       
    68 #ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
       
    69 	IMPORT_C TBool SubtitlesAvailable();
       
    70 	
       
    71 	IMPORT_C void EnableSubtitlesL();
       
    72 	
       
    73 	IMPORT_C void DisableSubtitles();
       
    74 	
       
    75 	IMPORT_C TLanguage SubtitleLanguageL();
       
    76 	
       
    77 	IMPORT_C TArray<TLanguage> SupportedSubtitleLanguagesL();
       
    78 	
       
    79 	IMPORT_C void SetSubtitleLanguageL(TLanguage aLanguage);
       
    80 	
       
    81 	IMPORT_C void RedrawSubtitle(RWindow& aWindow, const TRect &aRect);
       
    82 #endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
       
    83 
       
    84 private:
       
    85 	friend class CTestStepUnitMMFVidClient;
       
    86 	};
       
    87 
       
    88 #endif // VIDEOPLAYER2_H