author | zecke <zecke> | 2002-07-01 23:00:43 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-01 23:00:43 (UTC) |
commit | 8863cf6b20e881e638e8a3cdb18709ecc8201d51 (patch) (side-by-side diff) | |
tree | 23012f54bd75a76ac11f8c720d1e81850c3d3689 /noncore/multimedia/opieplayer2/lib.h | |
parent | b34df43c4d141b6845a6251e8f52f7daf3d1a867 (diff) | |
download | opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.zip opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.gz opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.bz2 |
Hija,
first bits of a XINE C++ lib for the OpieMediaPlayer
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h new file mode 100644 index 0000000..d9dc931 --- a/dev/null +++ b/noncore/multimedia/opieplayer2/lib.h @@ -0,0 +1,60 @@ + + +#ifndef ZECKEXINELIB_H +#define ZECKEXINELIB_H + +#include <qcstring.h> +#include <qstring.h> +#include <xine.h> + +namespace XINE { + + /** + * Lib wrapps the simple interface + * of libxine for easy every day use + * This will become a full C++ Wrapper + * It supports playing, pausing, info, + * stooping, seeking. + */ + class Frame; + class Lib { + public: + Lib(); + ~Lib(); + QCString version(); + int majorVersion()/*const*/; + int minorVersion()/*const*/; + int subVersion()/*const*/; + + + int play( const QString& fileName, + int startPos = 0, + int start_time = 0 ); + void stop() /*const*/; + void pause()/*const*/; + + int speed() /*const*/; + void setSpeed( int speed = SPEED_PAUSE ); + + int status() /*const*/; + + int currentPosition()/*const*/; + //in seconds + int currentTime()/*const*/; + int length() /*const*/; + + bool isSeekable()/*const*/; + + Frame currentFrame()/*const*/; + int error() /*const*/; + private: + xine_t *m_xine; + config_values_t *m_config; + vo_driver_t *m_videoOutput; + ao_driver_t* m_audioOutput; + + }; +}; + + +#endif |