diff options
Diffstat (limited to 'avmedia/source/vlc/vlcmanager.cxx')
-rw-r--r-- | avmedia/source/vlc/vlcmanager.cxx | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/avmedia/source/vlc/vlcmanager.cxx b/avmedia/source/vlc/vlcmanager.cxx new file mode 100644 index 000000000000..74f4111fd0cf --- /dev/null +++ b/avmedia/source/vlc/vlcmanager.cxx @@ -0,0 +1,47 @@ +#include "vlcmanager.hxx" +#include "vlcplayer.hxx" + +using namespace ::com::sun::star; + +namespace avmedia { +namespace vlc { + +const rtl::OUString VLC_IMPLEMENTATION_NAME = "com.sun.star.comp.avmedia.Manager_VLC"; + +Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) + : mxMgr( rxMgr ) +{ +} + +Manager::~Manager() +{ +} + +uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const rtl::OUString& rURL ) + throw (uno::RuntimeException) +{ + VLCPlayer* pPlayer( new VLCPlayer( mxMgr ) ); + uno::Reference< media::XPlayer > xRet( pPlayer ); + + return xRet; +} + +rtl::OUString SAL_CALL Manager::getImplementationName() + throw (uno::RuntimeException) +{ + return VLC_IMPLEMENTATION_NAME; +} + +sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& ServiceName ) + throw (uno::RuntimeException) +{ + return false; +} + +uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames() + throw (uno::RuntimeException) +{ + return uno::Sequence< rtl::OUString >(); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |