94
94
void GetTime(double *_retval);
95
95
void GetDuration(double *_retval);
96
96
void GetPercent(double *_retval);
97
void GetFilename(char * *filename);
97
void GetFilename(char **filename);
98
98
void SetFilename(const char *filename);
99
void GetShowControls(PRBool *_retval);
99
void GetShowControls(PRBool * _retval);
100
100
void SetShowControls(PRBool value);
101
void GetFullscreen(PRBool *_retval);
101
void GetFullscreen(PRBool * _retval);
102
102
void SetFullscreen(PRBool value);
103
void GetShowlogo(PRBool *_retval);
103
void GetShowlogo(PRBool * _retval);
104
104
void SetShowlogo(PRBool value);
105
void GetAutoPlay(PRBool *_retval);
105
void GetAutoPlay(PRBool * _retval);
106
106
void SetAutoPlay(PRBool value);
107
void GetLoop(PRBool *_retval);
107
void GetLoop(PRBool * _retval);
108
108
void SetLoop(PRBool value);
109
109
void GetMIMEType(char **_retval);
110
void GetPlaying(PRBool *_retval);
110
void GetPlaying(PRBool * _retval);
111
void PlaylistAppend(const char *item);
112
void PlaylistClear(PRBool *_retval);
112
115
// we need to provide implementation of this method as it will be
113
116
// used by Mozilla to retrive the scriptable peer
114
117
// and couple of other things on Unix
147
150
int hrefrequested;
148
int threadsetup; // has the child thread been setup but not signalled
149
int threadlaunched; // only allow 1 child thread per instance
150
int threadsignaled; // keep track if the thread has been told to start
151
int threadsetup; // has the child thread been setup but not signalled
152
int threadlaunched; // only allow 1 child thread per instance
153
int threadsignaled; // keep track if the thread has been told to start
153
156
int controlwindow;
171
175
char *mediaCompleteCallback;
176
char *mediaCompleteWithErrorCallback;
177
char *mouseClickCallback;
178
char *mouseDownCallback;
179
char *mouseUpCallback;
180
char *mouseEnterCallback;
181
char *mouseLeaveCallback;
172
182
char *onVisibleCallback;
173
183
char *onHiddenCallback;
174
184
char *onDestroyCallback;
175
float mediaLength; // length of media in seconds
176
int mediaPercent; // percentage of media played
177
float mediaTime; // time in seconds
185
float mediaLength; // length of media in seconds
186
int mediaPercent; // percentage of media played
187
float mediaTime; // time in seconds
188
float mediaPos; // seconds into the media
178
189
int nomediacache;
179
190
int controlsvisible;
184
196
int black_background;
227
246
GtkMenuItem *menuitem_config;
229
248
GtkWidget *conf_window;
233
GtkWidget *conf_cachesize;
234
GtkWidget *conf_cachepercent;
252
GtkWidget *conf_cachesize;
253
GtkWidget *conf_cachepercent;
254
GtkWidget *conf_showtime;
255
GtkWidget *conf_enable_smil;
256
GtkWidget *conf_enable_helix;
257
GtkWidget *conf_nomediacache;
258
GtkWidget *conf_rtsptcp;
259
GtkWidget *conf_enable_wmp;
260
GtkWidget *conf_enable_qt;
261
GtkWidget *conf_enable_rm;
262
GtkWidget *conf_enable_gmp;
263
GtkWidget *conf_enable_ogg;
264
GtkWidget *conf_enable_mpeg;
265
GtkWidget *conf_enable_mp3;
238
269
pthread_t player_thread;
241
272
pthread_mutex_t playlist_mutex;
242
273
pthread_mutex_t playlist_cond_mutex;
243
274
pthread_mutex_t control_mutex;
275
pthread_mutex_t read_mutex;
245
277
#ifdef GTK2_ENABLED
246
278
// Pixbufs - GTK1 does not use Pixbufs