1 /*****************************************************************************
2 * vlcplugin.h: a VLC plugin for Mozilla
3 *****************************************************************************
4 * Copyright (C) 2002-2005 the VideoLAN team
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*******************************************************************************
25 * Instance state information about the plugin.
26 ******************************************************************************/
27 #ifndef __VLCPLUGIN_H__
28 #define __VLCPLUGIN_H__
32 #if !defined(XP_MACOSX) && !defined(XP_UNIX) && !defined(XP_WIN)
34 #elif defined(XP_MACOSX)
44 # include <Quickdraw.h>
49 # include <X11/Xlib.h>
50 # include <X11/Intrinsic.h>
51 # include <X11/StringDefs.h>
60 void SetInstance( NPP );
67 uint32 i_width, i_height;
70 /* Windows data members */
76 /* UNIX data members */
82 /* MACOS data members */
87 /* vlc data members */
98 /*******************************************************************************
100 ******************************************************************************/
101 #define PLUGIN_NAME "VLC multimedia plugin"
102 #define PLUGIN_DESCRIPTION \
103 "VLC multimedia plugin <br>" \
106 "VideoLAN WWW: <a href=\"http://www.videolan.org/\">http://www.videolan.org/</a>"
108 #define PLUGIN_MIMETYPES \
109 /* MPEG-1 and MPEG-2 */ \
110 "audio/mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
111 "audio/x-mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
112 "video/mpeg:mpg,mpeg,mpe:MPEG video;" \
113 "video/x-mpeg:mpg,mpeg,mpe:MPEG video;" \
114 "video/mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
115 "video/x-mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
117 "video/mpeg4:mp4,mpg4:MPEG-4 video;" \
118 "audio/mpeg4:mp4,mpg4:MPEG-4 audio;" \
119 "application/mpeg4-iod:mp4,mpg4:MPEG-4 video;" \
120 "application/mpeg4-muxcodetable:mp4,mpg4:MPEG-4 video;" \
122 "video/x-msvideo:avi:AVI video;" \
124 "video/quicktime:mov,qt:QuickTime video;" \
126 "application/x-ogg:ogg:Ogg stream;" \
127 "application/ogg:ogg:Ogg stream;" \
128 /* explicit plugin call */ \
129 "application/x-vlc-plugin::VLC plugin;" \
130 /* windows media */ \
131 "video/x-ms-asf-plugin:asf,asx:Windows Media Video;" \
132 "video/x-ms-asf:asf,asx:Windows Media Video;" \
133 "application/x-mplayer2::Windows Media;" \
134 "video/x-ms-wmv:wmv:Windows Media;" \
135 /* Google VLC mime */ \
136 "application/x-google-vlc-plugin::Google VLC plugin" \
138 "audio/wav::WAV audio" \
139 "audio/x-wav::WAV audio" \