mediacontrol_structures.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef VLC_CONTROL_STRUCTURES_H
00037 #define VLC_CONTROL_STRUCTURES_H 1
00038
00039 # ifdef __cplusplus
00040 extern "C" {
00041 # endif
00042
00043 #include <stdint.h>
00044
00045
00046
00047
00048
00049
00050
00051 typedef enum {
00052 mediacontrol_AbsolutePosition,
00053 mediacontrol_RelativePosition,
00054 mediacontrol_ModuloPosition
00055 } mediacontrol_PositionOrigin;
00056
00057
00058
00059
00060
00061
00062
00063 typedef enum {
00064 mediacontrol_ByteCount,
00065 mediacontrol_SampleCount,
00066 mediacontrol_MediaTime
00067 } mediacontrol_PositionKey;
00068
00069
00070
00071
00072
00073
00074 typedef enum {
00075 mediacontrol_UndefinedStatus=0, mediacontrol_InitStatus,
00076 mediacontrol_BufferingStatus, mediacontrol_PlayingStatus,
00077 mediacontrol_PauseStatus, mediacontrol_StopStatus,
00078 mediacontrol_EndStatus, mediacontrol_ErrorStatus,
00079 } mediacontrol_PlayerStatus;
00080
00081
00082
00083
00084 typedef struct {
00085 mediacontrol_PositionOrigin origin;
00086 mediacontrol_PositionKey key;
00087 int64_t value;
00088 } mediacontrol_Position;
00089
00090
00091
00092
00093
00094 typedef struct {
00095 int width;
00096 int height;
00097 uint32_t type;
00098 int64_t date;
00099 int size;
00100 char *data;
00101 } mediacontrol_RGBPicture;
00102
00103
00104
00105
00106
00107 typedef struct {
00108 int size;
00109 char **data;
00110 } mediacontrol_PlaylistSeq;
00111
00112 typedef struct {
00113 int code;
00114 char *message;
00115 } mediacontrol_Exception;
00116
00117
00118
00119
00120 #define mediacontrol_PositionKeyNotSupported 1
00121 #define mediacontrol_PositionOriginNotSupported 2
00122 #define mediacontrol_InvalidPosition 3
00123 #define mediacontrol_PlaylistException 4
00124 #define mediacontrol_InternalException 5
00125
00126
00127
00128
00129
00130 typedef struct {
00131 mediacontrol_PlayerStatus streamstatus;
00132 char *url;
00133 int64_t position;
00134 int64_t length;
00135 } mediacontrol_StreamInformation;
00136
00137
00138 # ifdef __cplusplus
00139 }
00140 # endif
00141
00142 #endif
00143
00144