# include <X11/Intrinsic.h>
# include <X11/StringDefs.h>
# include <X11/X.h>
+
+# ifndef __APPLE__
+# include <X11/xpm.h>
+# endif
+#endif
+
+#ifndef __MAX
+# define __MAX(a, b) ( ((a) > (b)) ? (a) : (b) )
+#endif
+#ifndef __MIN
+# define __MIN(a, b) ( ((a) < (b)) ? (a) : (b) )
#endif
class VlcPlugin
{ return npcontrol; };
void setControlWindow(Window window)
{ npcontrol = window; };
+
+ void showToolbar();
+ void hideToolbar();
+ void redrawToolbar();
+ void getToolbarSize(unsigned int *width, unsigned int *height)
+ { *width = i_tb_width; *height = i_tb_height; };
+ int setToolbarSize(unsigned int width, unsigned int height)
+ { i_tb_width = width; i_tb_height = height; return 1; };
#endif
uint16 i_npmode; /* either NP_EMBED or NP_FULL */
/* plugin properties */
int b_stream;
int b_autoplay;
+ int b_toolbar;
char * psz_target;
private:
#endif
#if XP_UNIX
unsigned int i_width, i_height;
+ unsigned int i_tb_width, i_tb_height;
Window npvideo, npcontrol;
+
+ XImage *p_btnPlay;
+ XImage *p_btnPause;
+ XImage *p_btnStop;
+ XImage *p_timeline;
+ XImage *p_btnTime;
+ XImage *p_btnFullscreen;
+ XImage *p_btnMute;
+ XImage *p_btnUnmute;
+
+ int i_last_position;
#endif
};
/*******************************************************************************
* Plugin properties.
******************************************************************************/
-#define PLUGIN_NAME "VLC Multimedia Plugin"
+#define PLUGIN_NAME "VLC Multimedia Plug-in"
#define PLUGIN_DESCRIPTION \
"Version %s, copyright 1996-2007 The VideoLAN Team" \
"<br><a href=\"http://www.videolan.org/\">http://www.videolan.org/</a>"
"application/x-ogg:ogg:Ogg stream;" \
"application/ogg:ogg:Ogg stream;" \
/* VLC */ \
- "application/x-vlc-plugin:vlc:VLC plugin;" \
+ "application/x-vlc-plugin:vlc:VLC plug-in;" \
/* Windows Media */ \
"video/x-ms-asf-plugin:asf,asx:Windows Media Video;" \
"video/x-ms-asf:asf,asx:Windows Media Video;" \
"video/x-ms-wmv:wmv:Windows Media;" \
"video/x-ms-wvx:wvx:Windows Media Video;" \
/* Google VLC */ \
- "application/x-google-vlc-plugin::Google VLC plugin;" \
+ "application/x-google-vlc-plugin::Google VLC plug-in;" \
/* WAV audio */ \
"audio/wav:wav:WAV audio;" \
"audio/x-wav:wav:WAV audio;" \
"audio/3gpp2:3g2,3gpp2:3GPP2 audio;" \
"video/3gpp2:3g2,3gpp2:3GPP2 video;" \
/* DIVX */ \
- "video/divx:divx:DivX video;"
+ "video/divx:divx:DivX video;" \
+ /* FLV */ \
+ "video/flv:flv:FLV video;" \
+ "video/x-flv:flv:FLV video;"
+
+
#endif