vdr-streamdev-client/player.h

41 lines
928 B
C
Raw Permalink Normal View History

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:
2025-02-15 07:38:45 +01:00
Player(QFrame*);
2025-02-15 07:32:07 +01:00
~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:41:16 +01:00
int set_ip(void);
2025-02-15 07:34:15 +01:00
2025-02-15 07:32:07 +01:00
private:
2025-02-15 07:34:15 +01:00
int val;
2025-02-15 07:39:35 +01:00
static size_t write_data(void*, size_t, size_t , void*);
2025-02-15 07:32:07 +01:00
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:41:16 +01:00
QString URL[10000];
QString ip;
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