bump product version to 6.3.0.0.beta1
[LibreOffice.git] / avmedia / source / vlc / inc / wrapper / Player.hxx
blob84b064493d6111bf7c31b16616d416a3640f89ee
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_AVMEDIA_SOURCE_VLC_INC_WRAPPER_PLAYER_HXX
11 #define INCLUDED_AVMEDIA_SOURCE_VLC_INC_WRAPPER_PLAYER_HXX
12 #if defined UNX
13 # include <stdint.h>
14 #endif
16 struct libvlc_media_player_t;
18 namespace rtl
20 class OUString;
23 namespace avmedia
25 namespace vlc
27 namespace wrapper
29 class Media;
30 class Player
32 public:
33 static bool LoadSymbols();
34 explicit Player( Media& media );
35 Player( const Player& other );
36 Player& operator=( const Player& other );
37 ~Player();
39 bool play();
40 void pause();
41 void stop();
42 void setTime( int time );
43 int getTime() const;
44 bool isPlaying() const;
46 void setVolume( int volume );
47 int getVolume() const;
49 void setMute( bool mute);
50 bool getMute() const;
52 void setWindow( intptr_t id );
54 void takeSnapshot(const rtl::OUString& file);
56 bool hasVout() const;
58 void setScale( float factor );
59 void setVideoSize( unsigned width, unsigned height );
61 operator libvlc_media_player_t*()
63 return mPlayer;
66 void setMouseHandling(bool flag);
67 private:
68 libvlc_media_player_t *mPlayer;
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */