2025-02-15 07:32:07 +01:00
|
|
|
#ifndef PLAYER_H
|
|
|
|
#define PLAYER_H
|
|
|
|
|
2025-02-15 07:34:15 +01:00
|
|
|
#include <QObject>
|
2025-02-15 07:32:07 +01:00
|
|
|
#include <QFile>
|
|
|
|
#include <QFrame>
|
2025-02-15 07:34:15 +01:00
|
|
|
#include <QListWidget>
|
|
|
|
#include <vlc/vlc.h>
|
2025-02-15 07:32:07 +01:00
|
|
|
|
2025-02-15 07:34:15 +01:00
|
|
|
class Player : public QObject {
|
|
|
|
Q_OBJECT
|
2025-02-15 07:32:07 +01:00
|
|
|
public:
|
|
|
|
Player();
|
|
|
|
~Player();
|
2025-02-15 07:33:46 +01:00
|
|
|
int get_Sender() { return this->Sender; }
|
|
|
|
QString get_Name(int x) { return this->Name[x]; }
|
|
|
|
QString get_URL(int x) { return this->URL[x]; }
|
2025-02-15 07:32:07 +01:00
|
|
|
|
2025-02-15 07:34:15 +01:00
|
|
|
public slots:
|
|
|
|
int play(QListWidgetItem *item);
|
|
|
|
|
2025-02-15 07:32:07 +01:00
|
|
|
private:
|
2025-02-15 07:34:15 +01:00
|
|
|
int val;
|
2025-02-15 07:32:07 +01:00
|
|
|
static write_data(void*, size_t, size_t , void*);
|
|
|
|
int sender_holen(void);
|
|
|
|
int sender_laden(void);
|
2025-02-15 07:33:46 +01:00
|
|
|
int sender_ausgeben(void);
|
2025-02-15 07:32:07 +01:00
|
|
|
int Sender;
|
|
|
|
QString Name[10000];
|
2025-02-15 07:33:46 +01:00
|
|
|
QString URL[10000];
|
2025-02-15 07:32:07 +01:00
|
|
|
QFrame *videoWidget;
|
2025-02-15 07:34:15 +01:00
|
|
|
libvlc_instance_t * inst;
|
|
|
|
libvlc_media_player_t *mp=0;
|
|
|
|
libvlc_media_t *m;
|
|
|
|
|
2025-02-15 07:32:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PLAYER_H
|