blob: d435e6033ad7a4408377cfc0a0467237f7a5ff02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "oglmanager.hxx"
#include "oglframegrabber.hxx"
#include "oglplayer.hxx"
#include <cppuhelper/supportsservice.hxx>
using namespace com::sun::star;
namespace avmedia { namespace ogl {
OGLManager::OGLManager( const uno::Reference< lang::XMultiServiceFactory >& rMgr )
: m_xMgr( rMgr )
{
}
OGLManager::~OGLManager()
{
}
uno::Reference< media::XPlayer > SAL_CALL OGLManager::createPlayer( const OUString& rURL )
throw (uno::RuntimeException, std::exception)
{
// TODO: Here we need to construct our OpenGL player.
// See com::sun::star::media::XManager
OGLPlayer* pPlayer( new OGLPlayer( rURL ) );
return uno::Reference< media::XPlayer >(pPlayer);
}
OUString SAL_CALL OGLManager::getImplementationName() throw ( uno::RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.avmedia.Manager_OpenGL");
}
sal_Bool SAL_CALL OGLManager::supportsService( const OUString& rServiceName )
throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, rServiceName);
}
uno::Sequence< OUString > SAL_CALL OGLManager::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception )
{
::uno::Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.media.Manager_OpenGL");
return aRet;
}
} // namespace ogl
} // namespace avmedia
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|