os/mm/mmlibs/mmfw/inc/videoplayer2.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef VIDEOPLAYER2_H
sl@0
    17
#define VIDEOPLAYER2_H
sl@0
    18
sl@0
    19
#include <videoplayer.h>
sl@0
    20
sl@0
    21
class MMMFSurfaceEventHandler;
sl@0
    22
sl@0
    23
/**
sl@0
    24
@publishedPartner
sl@0
    25
@released
sl@0
    26
sl@0
    27
Extension class from CVideoPlayerUtility to allow graphics surface support.
sl@0
    28
*/
sl@0
    29
class CVideoPlayerUtility2 : public CVideoPlayerUtility
sl@0
    30
	{
sl@0
    31
public:
sl@0
    32
sl@0
    33
	~CVideoPlayerUtility2();
sl@0
    34
	IMPORT_C static CVideoPlayerUtility2* NewL(MVideoPlayerUtilityObserver& aObserver,
sl@0
    35
											  TInt aPriority,
sl@0
    36
											  TInt aPref);
sl@0
    37
										
sl@0
    38
	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, 
sl@0
    39
									RWindow& aWindow, const TRect& aVideoExtent, 
sl@0
    40
									const TRect& aWindowClipRect);
sl@0
    41
sl@0
    42
	IMPORT_C void AddDisplayWindowL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindow& aWindow);
sl@0
    43
sl@0
    44
 	IMPORT_C void RemoveDisplayWindow(RWindow& aWindow);
sl@0
    45
 	
sl@0
    46
 	IMPORT_C void SetVideoExtentL(const RWindow& aWindow, const TRect& aVideoExtent);
sl@0
    47
	
sl@0
    48
	IMPORT_C void SetWindowClipRectL(const RWindow& aWindow, const TRect& aWindowClipRect);
sl@0
    49
	
sl@0
    50
	IMPORT_C void SetRotationL(const RWindow& aWindow, TVideoRotation aRotation);
sl@0
    51
	
sl@0
    52
	IMPORT_C TVideoRotation RotationL(const RWindow& aWindow);
sl@0
    53
	
sl@0
    54
	IMPORT_C void SetScaleFactorL(const RWindow& aWindow, TReal32 aWidthPercentage, TReal32 aHeightPercentage);
sl@0
    55
	
sl@0
    56
	IMPORT_C void GetScaleFactorL(const RWindow& aWindow, TReal32& aWidthPercentage, TReal32& aHeightPercentage);
sl@0
    57
	
sl@0
    58
	IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType);
sl@0
    59
sl@0
    60
    IMPORT_C void SetAutoScaleL(const RWindow& aWindow, TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos);
sl@0
    61
sl@0
    62
    IMPORT_C void AddDisplayL(RWsSession& aWs, TInt aDisplay, MMMFSurfaceEventHandler& aEventHandler);
sl@0
    63
    
sl@0
    64
    IMPORT_C void RemoveDisplay(TInt aDisplay);    
sl@0
    65
    
sl@0
    66
    IMPORT_C void SetExternalDisplaySwitchingL(TInt aDisplay, TBool aControl);
sl@0
    67
sl@0
    68
#ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
sl@0
    69
	IMPORT_C TBool SubtitlesAvailable();
sl@0
    70
	
sl@0
    71
	IMPORT_C void EnableSubtitlesL();
sl@0
    72
	
sl@0
    73
	IMPORT_C void DisableSubtitles();
sl@0
    74
	
sl@0
    75
	IMPORT_C TLanguage SubtitleLanguageL();
sl@0
    76
	
sl@0
    77
	IMPORT_C TArray<TLanguage> SupportedSubtitleLanguagesL();
sl@0
    78
	
sl@0
    79
	IMPORT_C void SetSubtitleLanguageL(TLanguage aLanguage);
sl@0
    80
	
sl@0
    81
	IMPORT_C void RedrawSubtitle(RWindow& aWindow, const TRect &aRect);
sl@0
    82
#endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
sl@0
    83
sl@0
    84
private:
sl@0
    85
	friend class CTestStepUnitMMFVidClient;
sl@0
    86
	};
sl@0
    87
sl@0
    88
#endif // VIDEOPLAYER2_H