diff options
Diffstat (limited to 'avmedia/source/win/player.cxx')
-rw-r--r-- | avmedia/source/win/player.cxx | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 8bf50f231d45..5bb45e07a1ad 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -85,9 +85,6 @@ bool isWindowsVistaOrHigher() } -// - Player - - - Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : Player_BASE(m_aMutex), mxMgr( rxMgr ), @@ -110,6 +107,7 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : ::CoInitialize( NULL ); } + Player::~Player() { if( mnFrameWnd ) @@ -118,6 +116,7 @@ Player::~Player() ::CoUninitialize(); } + void SAL_CALL Player::disposing() { ::osl::MutexGuard aGuard(m_aMutex); @@ -156,6 +155,7 @@ void SAL_CALL Player::disposing() mpGB->Release(); } + bool Player::create( const OUString& rURL ) { HRESULT hR; @@ -202,11 +202,13 @@ bool Player::create( const OUString& rURL ) return bRet; } + const IVideoWindow* Player::getVideoWindow() const { return mpVW; } + void Player::setNotifyWnd( HWND nNotifyWnd ) { mbAddWindow = false; @@ -214,6 +216,7 @@ void Player::setNotifyWnd( HWND nNotifyWnd ) mpME->SetNotifyWindow( (OAHWND) nNotifyWnd, WM_GRAPHNOTIFY, reinterpret_cast< LONG_PTR>( this ) ); } + long Player::processEvent() { long nCode; @@ -241,6 +244,7 @@ long Player::processEvent() return 0; } + void SAL_CALL Player::start( ) throw (uno::RuntimeException) { @@ -284,6 +288,7 @@ void SAL_CALL Player::start( ) } } + void SAL_CALL Player::stop( ) throw (uno::RuntimeException) { @@ -292,6 +297,7 @@ void SAL_CALL Player::stop( ) mpMC->Stop(); } + sal_Bool SAL_CALL Player::isPlaying() throw (uno::RuntimeException) { @@ -306,6 +312,7 @@ sal_Bool SAL_CALL Player::isPlaying() return bRet; } + double SAL_CALL Player::getDuration( ) throw (uno::RuntimeException) { @@ -319,6 +326,7 @@ double SAL_CALL Player::getDuration( ) return aRefTime; } + void SAL_CALL Player::setMediaTime( double fTime ) throw (uno::RuntimeException) { @@ -335,6 +343,7 @@ void SAL_CALL Player::setMediaTime( double fTime ) } } + double SAL_CALL Player::getMediaTime( ) throw (uno::RuntimeException) { @@ -348,6 +357,7 @@ double SAL_CALL Player::getMediaTime( ) return aRefTime; } + void SAL_CALL Player::setPlaybackLoop( sal_Bool bSet ) throw (uno::RuntimeException) { @@ -356,6 +366,7 @@ void SAL_CALL Player::setPlaybackLoop( sal_Bool bSet ) mbLooping = bSet; } + sal_Bool SAL_CALL Player::isPlaybackLoop( ) throw (uno::RuntimeException) { @@ -364,6 +375,7 @@ sal_Bool SAL_CALL Player::isPlaybackLoop( ) return mbLooping; } + void SAL_CALL Player::setMute( sal_Bool bSet ) throw (uno::RuntimeException) { @@ -376,6 +388,7 @@ void SAL_CALL Player::setMute( sal_Bool bSet ) } } + sal_Bool SAL_CALL Player::isMute( ) throw (uno::RuntimeException) { @@ -384,6 +397,7 @@ sal_Bool SAL_CALL Player::isMute( ) return mbMuted; } + void SAL_CALL Player::setVolumeDB( sal_Int16 nVolumeDB ) throw (uno::RuntimeException) { @@ -395,6 +409,7 @@ void SAL_CALL Player::setVolumeDB( sal_Int16 nVolumeDB ) mpBA->put_Volume( mnUnmutedVolume ); } + sal_Int16 SAL_CALL Player::getVolumeDB( ) throw (uno::RuntimeException) { @@ -403,6 +418,7 @@ sal_Int16 SAL_CALL Player::getVolumeDB( ) return( static_cast< sal_Int16 >( mnUnmutedVolume / 100 ) ); } + awt::Size SAL_CALL Player::getPreferredPlayerWindowSize( ) throw (uno::RuntimeException) { @@ -422,6 +438,7 @@ awt::Size SAL_CALL Player::getPreferredPlayerWindowSize( ) return aSize; } + uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( const uno::Sequence< uno::Any >& aArguments ) throw (uno::RuntimeException) { @@ -443,6 +460,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co return xRet; } + uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber( ) throw (uno::RuntimeException) { @@ -461,18 +479,21 @@ uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber( ) return xRet; } + OUString SAL_CALL Player::getImplementationName( ) throw (uno::RuntimeException) { return OUString( AVMEDIA_WIN_PLAYER_IMPLEMENTATIONNAME ); } + sal_Bool SAL_CALL Player::supportsService( const OUString& ServiceName ) throw (uno::RuntimeException) { return cppu::supportsService(this, ServiceName); } + uno::Sequence< OUString > SAL_CALL Player::getSupportedServiceNames( ) throw (uno::RuntimeException) { |