os/mm/mmlibs/mmfw/inc/videoplayer2.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/inc/videoplayer2.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,88 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef VIDEOPLAYER2_H
    1.20 +#define VIDEOPLAYER2_H
    1.21 +
    1.22 +#include <videoplayer.h>
    1.23 +
    1.24 +class MMMFSurfaceEventHandler;
    1.25 +
    1.26 +/**
    1.27 +@publishedPartner
    1.28 +@released
    1.29 +
    1.30 +Extension class from CVideoPlayerUtility to allow graphics surface support.
    1.31 +*/
    1.32 +class CVideoPlayerUtility2 : public CVideoPlayerUtility
    1.33 +	{
    1.34 +public:
    1.35 +
    1.36 +	~CVideoPlayerUtility2();
    1.37 +	IMPORT_C static CVideoPlayerUtility2* NewL(MVideoPlayerUtilityObserver& aObserver,
    1.38 +											  TInt aPriority,
    1.39 +											  TInt aPref);
    1.40 +										
    1.41 +	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, 
    1.42 +									RWindow& aWindow, const TRect& aVideoExtent, 
    1.43 +									const TRect& aWindowClipRect);
    1.44 +
    1.45 +	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindow& aWindow);
    1.46 +
    1.47 + 	IMPORT_C void RemoveDisplayWindow(RWindow& aWindow);
    1.48 + 	
    1.49 + 	IMPORT_C void SetVideoExtentL(const RWindow& aWindow, const TRect& aVideoExtent);
    1.50 +	
    1.51 +	IMPORT_C void SetWindowClipRectL(const RWindow& aWindow, const TRect& aWindowClipRect);
    1.52 +	
    1.53 +	IMPORT_C void SetRotationL(const RWindow& aWindow, TVideoRotation aRotation);
    1.54 +	
    1.55 +	IMPORT_C TVideoRotation RotationL(const RWindow& aWindow);
    1.56 +	
    1.57 +	IMPORT_C void SetScaleFactorL(const RWindow& aWindow, TReal32 aWidthPercentage, TReal32 aHeightPercentage);
    1.58 +	
    1.59 +	IMPORT_C void GetScaleFactorL(const RWindow& aWindow, TReal32& aWidthPercentage, TReal32& aHeightPercentage);
    1.60 +	
    1.61 +	IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType);
    1.62 +
    1.63 +    IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos);
    1.64 +
    1.65 +    IMPORT_C void AddDisplayL(RWsSession& aWs, TInt aDisplay, MMMFSurfaceEventHandler& aEventHandler);
    1.66 +    
    1.67 +    IMPORT_C void RemoveDisplay(TInt aDisplay);    
    1.68 +    
    1.69 +    IMPORT_C void SetExternalDisplaySwitchingL(TInt aDisplay, TBool aControl);
    1.70 +
    1.71 +#ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
    1.72 +	IMPORT_C TBool SubtitlesAvailable();
    1.73 +	
    1.74 +	IMPORT_C void EnableSubtitlesL();
    1.75 +	
    1.76 +	IMPORT_C void DisableSubtitles();
    1.77 +	
    1.78 +	IMPORT_C TLanguage SubtitleLanguageL();
    1.79 +	
    1.80 +	IMPORT_C TArray<TLanguage> SupportedSubtitleLanguagesL();
    1.81 +	
    1.82 +	IMPORT_C void SetSubtitleLanguageL(TLanguage aLanguage);
    1.83 +	
    1.84 +	IMPORT_C void RedrawSubtitle(RWindow& aWindow, const TRect &aRect);
    1.85 +#endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
    1.86 +
    1.87 +private:
    1.88 +	friend class CTestStepUnitMMFVidClient;
    1.89 +	};
    1.90 +
    1.91 +#endif // VIDEOPLAYER2_H