Files
libstb-hal/libeplayer3/include/playback.h
2014-04-06 12:11:40 +02:00

46 lines
1.1 KiB
C++

#ifndef PLAYBACK_H_
#define PLAYBACK_H_
#include <sys/types.h>
#include <string>
typedef enum { PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP,
PLAYBACK_PAUSE, PLAYBACK_CONTINUE, PLAYBACK_FLUSH, PLAYBACK_TERM,
PLAYBACK_FASTFORWARD, PLAYBACK_SEEK, PLAYBACK_SEEK_ABS,
PLAYBACK_PTS, PLAYBACK_LENGTH, PLAYBACK_SWITCH_AUDIO,
PLAYBACK_SWITCH_SUBTITLE, PLAYBACK_METADATA, PLAYBACK_SLOWMOTION,
PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT,
PLAYBACK_SWITCH_TELETEXT
} PlaybackCmd_t;
struct Player;
typedef struct PlaybackHandler_s {
const char *Name;
int fd;
unsigned char isHttp;
unsigned char isPlaying;
unsigned char isPaused;
unsigned char isForwarding;
unsigned char isCreationPhase;
int BackWard;
int SlowMotion;
int Speed;
int AVSync;
unsigned char isVideo;
unsigned char isAudio;
unsigned char abortRequested;
unsigned char abortPlayback;
int (*Command) ( Player *, PlaybackCmd_t, void *);
std::string uri;
unsigned char noprobe; /* hack: only minimal probing in av_find_stream_info */
unsigned long long readCount;
} PlaybackHandler_t;
#endif