Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef VIDEOPLAYER2_H
17 #define VIDEOPLAYER2_H
19 #include <videoplayer.h>
21 class MMMFSurfaceEventHandler;
27 Extension class from CVideoPlayerUtility to allow graphics surface support.
29 class CVideoPlayerUtility2 : public CVideoPlayerUtility
33 ~CVideoPlayerUtility2();
34 IMPORT_C static CVideoPlayerUtility2* NewL(MVideoPlayerUtilityObserver& aObserver,
38 IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice,
39 RWindow& aWindow, const TRect& aVideoExtent,
40 const TRect& aWindowClipRect);
42 IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindow& aWindow);
44 IMPORT_C void RemoveDisplayWindow(RWindow& aWindow);
46 IMPORT_C void SetVideoExtentL(const RWindow& aWindow, const TRect& aVideoExtent);
48 IMPORT_C void SetWindowClipRectL(const RWindow& aWindow, const TRect& aWindowClipRect);
50 IMPORT_C void SetRotationL(const RWindow& aWindow, TVideoRotation aRotation);
52 IMPORT_C TVideoRotation RotationL(const RWindow& aWindow);
54 IMPORT_C void SetScaleFactorL(const RWindow& aWindow, TReal32 aWidthPercentage, TReal32 aHeightPercentage);
56 IMPORT_C void GetScaleFactorL(const RWindow& aWindow, TReal32& aWidthPercentage, TReal32& aHeightPercentage);
58 IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType);
60 IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos);
62 IMPORT_C void AddDisplayL(RWsSession& aWs, TInt aDisplay, MMMFSurfaceEventHandler& aEventHandler);
64 IMPORT_C void RemoveDisplay(TInt aDisplay);
66 IMPORT_C void SetExternalDisplaySwitchingL(TInt aDisplay, TBool aControl);
68 #ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
69 IMPORT_C TBool SubtitlesAvailable();
71 IMPORT_C void EnableSubtitlesL();
73 IMPORT_C void DisableSubtitles();
75 IMPORT_C TLanguage SubtitleLanguageL();
77 IMPORT_C TArray<TLanguage> SupportedSubtitleLanguagesL();
79 IMPORT_C void SetSubtitleLanguageL(TLanguage aLanguage);
81 IMPORT_C void RedrawSubtitle(RWindow& aWindow, const TRect &aRect);
82 #endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
85 friend class CTestStepUnitMMFVidClient;
88 #endif // VIDEOPLAYER2_H