1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_AVMEDIA_SOURCE_VLC_INC_WRAPPER_PLAYER_HXX
11 #define INCLUDED_AVMEDIA_SOURCE_VLC_INC_WRAPPER_PLAYER_HXX
16 struct libvlc_media_player_t
;
33 static bool LoadSymbols();
34 explicit Player( Media
& media
);
35 Player( const Player
& other
);
36 Player
& operator=( const Player
& other
);
42 void setTime( int time
);
44 bool isPlaying() const;
46 void setVolume( int volume
);
47 int getVolume() const;
49 void setMute( bool mute
);
52 void setWindow( intptr_t id
);
54 void takeSnapshot(const rtl::OUString
& file
);
58 void setScale( float factor
);
59 void setVideoSize( unsigned width
, unsigned height
);
61 operator libvlc_media_player_t
*()
66 void setMouseHandling(bool flag
);
68 libvlc_media_player_t
*mPlayer
;
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */